mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
disable scroll events on ajaxify'
This commit is contained in:
@@ -35,6 +35,8 @@ var ajaxify = {};
|
||||
// "quiet": If set to true, will not call pushState
|
||||
app.enterRoom('global');
|
||||
|
||||
$(window).off('scroll');
|
||||
|
||||
$('body').trigger('action:ajaxify.start', { url: url });
|
||||
$('body').trigger('action:ajaxifying', {url: url}); // Deprecated as of v0.4.0
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
});
|
||||
|
||||
} else {
|
||||
$(window).off('scroll');
|
||||
$('.pagination-block').addClass('hide');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user