JS: Don't activate a menu item if only a part of the current URL matches

Else, navigating to user -> preferences -> navigation activates configuration -> shared navigation for example.
This commit is contained in:
Eric Lippmann 2015-11-20 09:39:53 +01:00
parent edcc698e1e
commit 5b898d5f3b
1 changed files with 0 additions and 6 deletions

View File

@ -159,12 +159,6 @@
if (! this.active) {
this.setActive($('#menu [href="' + this.icinga.utils.parseUrl(url).path + '"]').first());
}
// if no item with the base action exists, activate the first URL that beings with the base path
// but may have different filters
if (! this.active) {
this.setActive($('#menu [href^="' + this.icinga.utils.parseUrl(url).path + '"]').first());
}
};
/**