mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
0d9f8786f9
commit
2d228ce83d
@ -120,10 +120,10 @@
|
|||||||
$(document).on('mouseenter', '.historycolorgrid td', this.historycolorgridHover);
|
$(document).on('mouseenter', '.historycolorgrid td', this.historycolorgridHover);
|
||||||
$(document).on('mouseleave', '.historycolorgrid td', this.historycolorgidUnhover);
|
$(document).on('mouseleave', '.historycolorgrid td', this.historycolorgidUnhover);
|
||||||
$(document).on('mouseenter', 'li.dropdown', this.dropdownHover);
|
$(document).on('mouseenter', 'li.dropdown', this.dropdownHover);
|
||||||
$(document).on('mouseleave', 'li.dropdown', this.dropdownLeave);
|
$(document).on('mouseleave', 'li.dropdown', {self: this}, this.dropdownLeave);
|
||||||
|
|
||||||
$(document).on('mouseenter', '#menu > ul > li', this.menuTitleHovered);
|
$(document).on('mouseenter', '#menu > ul > li', { self: this }, this.menuTitleHovered);
|
||||||
$(document).on('mouseleave', '#sidebar', this.leaveSidebar);
|
$(document).on('mouseleave', '#sidebar', { self: this }, this.leaveSidebar);
|
||||||
$(document).on('click', '.tree .handle', { self: this }, this.treeNodeToggle);
|
$(document).on('click', '.tree .handle', { self: this }, this.treeNodeToggle);
|
||||||
|
|
||||||
// Toggle all triStateButtons
|
// Toggle all triStateButtons
|
||||||
@ -135,9 +135,10 @@
|
|||||||
// $(document).on('change', 'form.auto select', this.submitForm);
|
// $(document).on('change', 'form.auto select', this.submitForm);
|
||||||
},
|
},
|
||||||
|
|
||||||
menuTitleHovered: function () {
|
menuTitleHovered: function (event) {
|
||||||
var $li = $(this),
|
var $li = $(this),
|
||||||
delay = 800;
|
delay = 800,
|
||||||
|
self = event.data.self;
|
||||||
|
|
||||||
if ($li.hasClass('active')) {
|
if ($li.hasClass('active')) {
|
||||||
$li.siblings().removeClass('hover');
|
$li.siblings().removeClass('hover');
|
||||||
@ -177,9 +178,10 @@
|
|||||||
}, delay);
|
}, delay);
|
||||||
},
|
},
|
||||||
|
|
||||||
leaveSidebar: function () {
|
leaveSidebar: function (event) {
|
||||||
var $sidebar = $(this);
|
var $sidebar = $(this),
|
||||||
var $li = $sidebar.find('li.hover');
|
$li = $sidebar.find('li.hover'),
|
||||||
|
self = event.data.self;
|
||||||
if (! $li.length) {
|
if (! $li.length) {
|
||||||
$('#layout').removeClass('hoveredmenu');
|
$('#layout').removeClass('hoveredmenu');
|
||||||
return;
|
return;
|
||||||
@ -198,8 +200,9 @@
|
|||||||
$(this).addClass('hover');
|
$(this).addClass('hover');
|
||||||
},
|
},
|
||||||
|
|
||||||
dropdownLeave: function () {
|
dropdownLeave: function (event) {
|
||||||
var $li = $(this);
|
var $li = $(this),
|
||||||
|
self = event.data.self;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
// TODO: make this behave well together with keyboard navigation
|
// TODO: make this behave well together with keyboard navigation
|
||||||
if (! $li.is('li:hover') /*&& ! $li.find('a:focus')*/) {
|
if (! $li.is('li:hover') /*&& ! $li.find('a:focus')*/) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user