Comment form scrolls to top of page

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by atomicbop on October 13, 2009 at 8:57pm

This is a great module and very easy to implement. I only have one problem. When AJAX is enabled for contact forms, the error messages are moved above the form instead of at the top of the page, which is great, but the scroll function scrolls to the top of the page instead of the top of the form. Is there any way to fix this? I can't seem to find where the scroller function is. Thanks.

Comments

you probably are using

Posted by andriy on December 22, 2011 at 10:46pm

you probably are using ajax_scroller module, in this case try to write ajax plugin:

/**
* @param {String} hook
* @param {Object} args
* @return {Bool}
*/
Drupal.Ajax.plugins.YOUR_PLUGIN_ANY_NAME = function(hook, args) {
if (hook === 'scrollFind') {
return false;
}
}

see documentation under "Developers: JavaScript API" section

Ajax.module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /