Module: check_mk
Branch: master
Commit: a1f9ba228a48912a611fd25e6fee621e6b42e52e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1f9ba228a4891…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 27 11:08:40 2016 +0100
#2968 FIX Closing quicksearch results when moving mouse out of sidebar area
---
.werks/2968 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 9 +++++++--
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.werks/2968 b/.werks/2968
new file mode 100644
index 0000000..43536c4
--- /dev/null
+++ b/.werks/2968
@@ -0,0 +1,9 @@
+Title: Closing quicksearch results when moving mouse out of sidebar area
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453889297
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index b45faa3..dfc730c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -268,6 +268,7 @@
* 2965 FIX: Fixed HTML code shown in filter selection of favorite hosts filter
* 2966 FIX: Quicksearch: Fixed sorting of results when not only searching for hosts
* 2967 FIX: Hosts/Services: Hiding action menu trigger for empty menus
+ * 2968 FIX: Closing quicksearch results when moving mouse out of sidebar area
WATO:
* 2442 WATO remove host: improved cleanup of obsolete host files...
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index c17ec7a..e5330d5 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -81,13 +81,18 @@ function registerEdgeListeners(obj) {
continue;
if (window.addEventListener)
- edges[i].addEventListener("mousemove", stop_snapin_dragging,
false);
+ edges[i].addEventListener("mousemove", on_mouse_leave, false);
else
- edges[i].onmousemove = stop_snapin_dragging;
+ edges[i].onmousemove = on_mouse_leave;
}
edges = null;
}
+function on_mouse_leave(e) {
+ mkSearchClose();
+ return stop_snapin_dragging(e);
+}
+
function stop_snapin_dragging(e) {
stopDragScroll(e);
snapinTerminateDrag(e);