mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
closes #130
This commit is contained in:
@@ -234,13 +234,13 @@ var socket,
|
||||
parts = url.split('/'),
|
||||
active = parts[parts.length-1];
|
||||
|
||||
jQuery('.nav li').removeClass('active');
|
||||
jQuery('#main-nav li').removeClass('active');
|
||||
if(active) {
|
||||
jQuery('.nav li a').each(function() {
|
||||
jQuery('#main-nav li a').each(function() {
|
||||
var href = this.getAttribute('href');
|
||||
if(active.match(/^users/))
|
||||
active = 'users';
|
||||
if (href.match(active)) {
|
||||
if (href && href.match(active)) {
|
||||
jQuery(this.parentNode).addClass('active');
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user