mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-12 01:27:38 +01:00
dont show new posts on popular
doesnt makse sense
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user