mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Do not follow empty menu links
This commit is contained in:
parent
cb9c9c78d8
commit
7aadad913e
@ -74,10 +74,7 @@
|
|||||||
if ($a.hasClass('dropdown-toggle')) {
|
if ($a.hasClass('dropdown-toggle')) {
|
||||||
$a.closest('li').toggleClass('hover');
|
$a.closest('li').toggleClass('hover');
|
||||||
}
|
}
|
||||||
// Ignore link, no action
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (isMenuLink) {
|
if (isMenuLink) {
|
||||||
activeMenuId = $(event.target).closest('li').attr('id');
|
activeMenuId = $(event.target).closest('li').attr('id');
|
||||||
|
@ -369,6 +369,9 @@
|
|||||||
|
|
||||||
// If link has hash tag...
|
// If link has hash tag...
|
||||||
if (href.match(/#/)) {
|
if (href.match(/#/)) {
|
||||||
|
if (href === '#') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$target = self.getLinkTargetFor($a);
|
$target = self.getLinkTargetFor($a);
|
||||||
|
|
||||||
formerUrl = $target.data('icingaUrl');
|
formerUrl = $target.data('icingaUrl');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user