JS: exclude user-nav-item from regular nav menu behavior

This commit is contained in:
Florian Strohmaier 2016-11-16 16:36:46 +01:00
parent ef96939a25
commit 04c28c0ccb

View File

@ -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);