|
|
@ -2,13 +2,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* globals define, app, socket*/
|
|
|
|
/* globals define, app, socket*/
|
|
|
|
|
|
|
|
|
|
|
|
define('forum/popular', function() {
|
|
|
|
define('forum/popular', ['components'], function(components) {
|
|
|
|
var Popular = {};
|
|
|
|
var Popular = {};
|
|
|
|
|
|
|
|
|
|
|
|
Popular.init = function() {
|
|
|
|
Popular.init = function() {
|
|
|
|
app.enterRoom('popular_topics');
|
|
|
|
app.enterRoom('popular_topics');
|
|
|
|
|
|
|
|
|
|
|
|
$('.nav-pills li').removeClass('active').find('a[href="' + window.location.pathname + '"]').parent().addClass('active');
|
|
|
|
components.get('popular/tab')
|
|
|
|
|
|
|
|
.removeClass('active')
|
|
|
|
|
|
|
|
.find('a[href="' + window.location.pathname + '"]')
|
|
|
|
|
|
|
|
.parent().addClass('active');
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return Popular;
|
|
|
|
return Popular;
|
|
|
|