|
|
|
@ -5,12 +5,6 @@
|
|
|
|
|
define('forum/popular', ['forum/recent', 'forum/infinitescroll'], function(recent, infinitescroll) {
|
|
|
|
|
var Popular = {};
|
|
|
|
|
|
|
|
|
|
$(window).on('action:ajaxify.start', function(ev, data) {
|
|
|
|
|
if(data.url.indexOf('recent') !== 0) {
|
|
|
|
|
recent.removeListeners();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Popular.init = function() {
|
|
|
|
|
app.enterRoom('recent_posts');
|
|
|
|
|
|
|
|
|
@ -18,8 +12,6 @@ define('forum/popular', ['forum/recent', 'forum/infinitescroll'], function(recen
|
|
|
|
|
$(this).addClass('hide');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
recent.watchForNewPosts();
|
|
|
|
|
|
|
|
|
|
recent.selectActivePill();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|