Activate only the first match if multiple menu items carry the same URL

This commit is contained in:
Thomas Gelf 2014-03-12 00:44:30 +01:00
parent c76729a821
commit f1f1813b04
1 changed files with 2 additions and 0 deletions

View File

@ -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');
}