disable scroll events on ajaxify'

This commit is contained in:
Baris Soner Usakli
2014-01-29 15:19:54 -05:00
parent 3c273f4a66
commit d0702f663b
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -24,7 +24,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
}); });
} else { } else {
$(window).off('scroll');
$('.pagination-block').addClass('hide'); $('.pagination-block').addClass('hide');
} }
}); });