Module: check_mk
Branch: master
Commit: 43da5905e1e415bbae69a3d39c7998e74fe608fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=43da5905e1e415…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 7 11:41:25 2016 +0200
3850 FIX Fixed JS error when quicksearch snapin not in sidebar
---
.werks/3850 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 3 ++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3850 b/.werks/3850
new file mode 100644
index 0000000..aad1b6d
--- /dev/null
+++ b/.werks/3850
@@ -0,0 +1,9 @@
+Title: Fixed JS error when quicksearch snapin not in sidebar
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i1
+Date: 1473241273
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index cb56b18..6748b8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -481,6 +481,7 @@
* 3763 FIX: Fixed playing sounds in views when using current Firefox...
* 3779 FIX: availability: added validation of availability options
* 3767 FIX: Fixed possible UnicodeDecodeError when having users with umlauts in the
user ID
+ * 3850 FIX: Fixed JS error when quicksearch snapin not in sidebar
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node
selection...
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 18ad0f6..cecbc0f 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -89,7 +89,8 @@ function registerEdgeListeners(obj) {
}
function on_mouse_leave(e) {
- mkSearchClose();
+ if (typeof(mkSearchClose) != "undefined")
+ mkSearchClose();
return stop_snapin_dragging(e);
}