Skip to content

Commit

Permalink
Do not follow empty menu links
Browse files Browse the repository at this point in the history
  • Loading branch information
majentsch committed Sep 10, 2014
1 parent cb9c9c7 commit 7aadad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/js/icinga/behavior/navigation.js
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions public/js/icinga/events.js
Expand Up @@ -369,6 +369,9 @@

// If link has hash tag...
if (href.match(/#/)) {
if (href === '#') {
return false;
}
$target = self.getLinkTargetFor($a);

formerUrl = $target.data('icingaUrl');
Expand Down

0 comments on commit 7aadad9

Please sign in to comment.