mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-31 03:40:16 +01:00
cleanup popular.js
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"year": "Year",
|
||||
"alltime": "All Time",
|
||||
"no_recent_topics": "There are no recent topics.",
|
||||
"no_popular_topics": "There are no popular topics.",
|
||||
|
||||
"there-is-a-new-topic": "There is a new topic.",
|
||||
"there-is-a-new-topic-and-a-new-post": "There is a new topic and a new post.",
|
||||
|
||||
@@ -2,16 +2,12 @@
|
||||
|
||||
/* globals define, app, socket*/
|
||||
|
||||
define('forum/popular', ['forum/recent', 'forum/infinitescroll'], function(recent, infinitescroll) {
|
||||
define('forum/popular', ['forum/recent'], function(recent) {
|
||||
var Popular = {};
|
||||
|
||||
Popular.init = function() {
|
||||
app.enterRoom('recent_posts');
|
||||
|
||||
$('#new-topics-alert').on('click', function() {
|
||||
$(this).addClass('hide');
|
||||
});
|
||||
|
||||
selectActivePill();
|
||||
};
|
||||
|
||||
@@ -26,10 +22,10 @@ define('forum/popular', ['forum/recent', 'forum/infinitescroll'], function(recen
|
||||
return false;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function getActiveSection() {
|
||||
parts = window.location.href.split('/');
|
||||
var parts = window.location.href.split('/');
|
||||
return parts[parts.length - 1];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user