The commit introduces a new ScrollToExtension that allows automatic scrolling when AJAX requests start or finish. The event on which the scrolling will be triggered (either before or success), is defined with the defaultScrollToEvent property passed into constructor (before is the default). The behavior can be further customised using the data-naja-scroll-to and data-naja-scroll-to-event HTML attributes. See the readme for a full description
The commit introduces a new
ScrollToExtension
that allows automatic scrolling when AJAX requests start or finish. The event on which the scrolling will be triggered (eitherbefore
orsuccess
), is defined with thedefaultScrollToEvent
property passed into constructor (before
is the default). The behavior can be further customised using thedata-naja-scroll-to
anddata-naja-scroll-to-event
HTML attributes. See the readme for a full description