From 04c28c0ccbcb3aa83bc48dad15d0d16e5eda2f2b Mon Sep 17 00:00:00 2001 From: Florian Strohmaier Date: Wed, 16 Nov 2016 16:36:46 +0100 Subject: [PATCH] JS: exclude user-nav-item from regular nav menu behavior --- public/js/icinga/behavior/navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js index 2da6bc87d..5046a18d4 100644 --- a/public/js/icinga/behavior/navigation.js +++ b/public/js/icinga/behavior/navigation.js @@ -8,11 +8,11 @@ var Navigation = function (icinga) { Icinga.EventListener.call(this, icinga); - this.on('click', '#menu a', this.linkClicked, this); + this.on('click', '#menu a:not(".user-nav-item")', this.linkClicked, this); this.on('click', '#menu tr[href]', this.linkClicked, this); this.on('mouseenter', 'li.dropdown', this.dropdownHover, this); this.on('mouseleave', 'li.dropdown', this.dropdownLeave, this); - this.on('mouseenter', '#menu > nav > ul > li', this.menuTitleHovered, this); + this.on('mouseenter', '#menu > nav > ul > li:not(".user-nav-item")', this.menuTitleHovered, this); this.on('mouseleave', '#sidebar', this.leaveSidebar, this); this.on('rendered', this.onRendered, this);