mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
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:
parent
edcc698e1e
commit
5b898d5f3b
@ -159,12 +159,6 @@
|
|||||||
if (! this.active) {
|
if (! this.active) {
|
||||||
this.setActive($('#menu [href="' + this.icinga.utils.parseUrl(url).path + '"]').first());
|
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());
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user