Skip to content
Snippets Groups Projects
Commit f509833d authored by Paweł Michna's avatar Paweł Michna
Browse files

remove wrong checking of active link in sidebar

parent 0b77a748
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment