remove wrong checking of active link in sidebar
This commit is contained in:
2
dist/js/sb-admin-2.js
vendored
2
dist/js/sb-admin-2.js
vendored
@@ -28,7 +28,7 @@ $(function() {
|
||||
|
||||
var url = window.location;
|
||||
var element = $('ul.nav a').filter(function() {
|
||||
return this.href == url || url.href.indexOf(this.href) == 0;
|
||||
return this.href == url;
|
||||
}).addClass('active').parent().parent().addClass('in').parent();
|
||||
if (element.is('li')) {
|
||||
element.addClass('active');
|
||||
|
||||
Reference in New Issue
Block a user