mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +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
|
// "quiet": If set to true, will not call pushState
|
||||||
app.enterRoom('global');
|
app.enterRoom('global');
|
||||||
|
|
||||||
|
$(window).off('scroll');
|
||||||
|
|
||||||
$('body').trigger('action:ajaxify.start', { url: url });
|
$('body').trigger('action:ajaxify.start', { url: url });
|
||||||
$('body').trigger('action:ajaxifying', {url: url}); // Deprecated as of v0.4.0
|
$('body').trigger('action:ajaxifying', {url: url}); // Deprecated as of v0.4.0
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$(window).off('scroll');
|
|
||||||
$('.pagination-block').addClass('hide');
|
$('.pagination-block').addClass('hide');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user