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

Highlight exact menu entry #13

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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