Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #13 from leorossi/feature/match-exact-page-title-a…
Browse files Browse the repository at this point in the history
…nd-menu

Highlight exact menu entry
  • Loading branch information
mlantz committed Jun 24, 2016
2 parents db80cfb + 7aad460 commit 1da0adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assets/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

$('.nav-sidebar li').each(function(){
if ($('.page-header').text().toLowerCase().trim().indexOf($(this).children('a').text().toLowerCase().trim()) >= 0) {
if ($('.page-header').text().toLowerCase().trim() == ($(this).children('a').text().toLowerCase().trim())) {
$(this).addClass('active');
}
});
Expand Down

0 comments on commit 1da0adc

Please sign in to comment.