Skip to content

Commit c4715b6

Browse files
committed
limit js class activation to navigation
1 parent 27af8ad commit c4715b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/kumquat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ $(function() {
5555
if( p.length > 2 ) {
5656
path = '/' + p.slice(1,3).join('/') + '/';
5757
}
58-
$('a[href="' + path + '"]').closest('li').addClass('active');
58+
$('.nav-sidebar a[href="' + path + '"]').closest('li').addClass('active');
5959
})

0 commit comments

Comments
 (0)