Activate only the first match if multiple menu items carry the same URL
This commit is contained in:
parent
c76729a821
commit
f1f1813b04
|
@ -252,6 +252,8 @@
|
|||
$el.closest('li').addClass('active');
|
||||
$el.parents('li').addClass('active');
|
||||
}
|
||||
// Interrupt .each, only on menu item shall be active
|
||||
return false;
|
||||
} else if ($(el).closest('table.action').length) {
|
||||
$el.addClass('active');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue