remove wrong checking of active link in sidebar

This commit is contained in:
Paweł Michna
2015-09-30 12:32:39 +02:00
parent 0b77a7484f
commit f509833df1

View File

@@ -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');