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