Skip to content

Commit

Permalink
Allow active element selection for REST routing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumpelblase2 committed Jan 13, 2015
1 parent d5fcdb7 commit be0bc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/sb-admin-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $(function() {

var url = window.location;
var element = $('ul.nav a').filter(function() {
return this.href == url;
return this.href == url || url.href.indexOf(this.href) == 0;
}).addClass('active').parent().parent().addClass('in').parent();
if (element.is('li')) {
element.addClass('active');
Expand Down

0 comments on commit be0bc42

Please sign in to comment.