mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 19:29:00 +02:00
JS: exclude user-nav-item from regular nav menu behavior
This commit is contained in:
parent
ef96939a25
commit
04c28c0ccb
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user