mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
49b82af704
commit
7ef86ddf49
@ -130,23 +130,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (! $li.is('li:hover')) {
|
try {
|
||||||
return;
|
if (!$li.is('li:hover')) {
|
||||||
}
|
return;
|
||||||
if ($li.hasClass('active')) {
|
}
|
||||||
return;
|
if ($li.hasClass('active')) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
} catch(e) { /* Bypass because if IE8 */ }
|
||||||
|
|
||||||
$li.siblings().each(function () {
|
$li.siblings().each(function () {
|
||||||
var $sibling = $(this);
|
var $sibling = $(this);
|
||||||
if ($sibling.is('li:hover')) {
|
try {
|
||||||
return;
|
if ($sibling.is('li:hover')) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
} catch(e) { /* Bypass because if IE8 */ };
|
||||||
if ($sibling.hasClass('hover')) {
|
if ($sibling.hasClass('hover')) {
|
||||||
$sibling.removeClass('hover');
|
$sibling.removeClass('hover');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
self.hoverElement($li);
|
self.hoverElement($li);
|
||||||
}, delay);
|
}, delay);
|
||||||
};
|
};
|
||||||
@ -161,9 +164,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if ($li.is('li:hover') || $sidebar.is('sidebar:hover') ) {
|
try {
|
||||||
return;
|
if ($li.is('li:hover') || $sidebar.is('sidebar:hover')) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
} catch(e) { /* Bypass because if IE8 */ };
|
||||||
$li.removeClass('hover');
|
$li.removeClass('hover');
|
||||||
$('#layout').removeClass('hoveredmenu');
|
$('#layout').removeClass('hoveredmenu');
|
||||||
}, 500);
|
}, 500);
|
||||||
@ -183,9 +188,11 @@
|
|||||||
self = event.data.self;
|
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')*/) {
|
try {
|
||||||
$li.removeClass('hover');
|
if (!$li.is('li:hover') /*&& ! $li.find('a:focus')*/) {
|
||||||
}
|
$li.removeClass('hover');
|
||||||
|
}
|
||||||
|
} catch(e) { /* Bypass because if IE8 */ }
|
||||||
}, 300);
|
}, 300);
|
||||||
};
|
};
|
||||||
Icinga.Behaviors.Navigation = Navigation;
|
Icinga.Behaviors.Navigation = Navigation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user