You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
338 B
JavaScript
18 lines
338 B
JavaScript
'use strict';
|
|
|
|
|
|
define('forum/popular', ['components'], function (components) {
|
|
var Popular = {};
|
|
|
|
Popular.init = function () {
|
|
app.enterRoom('popular_topics');
|
|
|
|
components.get('popular/tab')
|
|
.removeClass('active')
|
|
.find('a[href="' + window.location.pathname + '"]')
|
|
.parent().addClass('active');
|
|
};
|
|
|
|
return Popular;
|
|
});
|