mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 20:11:26 +01:00
popular/tab component
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
|
||||
/* globals define, app, socket*/
|
||||
|
||||
define('forum/popular', function() {
|
||||
define('forum/popular', ['components'], function(components) {
|
||||
var Popular = {};
|
||||
|
||||
Popular.init = function() {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user