Do not follow empty menu links

This commit is contained in:
Matthias Jentsch 2014-09-10 15:51:02 +02:00
parent cb9c9c78d8
commit 7aadad913e
2 changed files with 3 additions and 3 deletions
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');