Skip to content

Node.js based forum software built for the modern web

cleanup popular.js

barisusakli9084ee2d7e0d
diff --git a/public/language/en_GB/recent.json b/public/language/en_GB/recent.json
index f01670e47c..835dfce296 100644
--- a/public/language/en_GB/recent.json
+++ b/public/language/en_GB/recent.json
@@ -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.",
diff --git a/public/src/client/popular.js b/public/src/client/popular.js
index 6edc5a071c..0d05186faf 100644
--- a/public/src/client/popular.js
+++ b/public/src/client/popular.js
@@ -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];
}