Module: check_mk
Branch: master
Commit: d693719ce5a10e2dede27be64d98daf7fb7f6367
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d693719ce5a10e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 24 10:46:09 2012 +0200
FIX: remove nasty JS error in sidebar
---
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 18 ++++++++----------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fbe93ab..e1bc3e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
* New display type 'boxes-omit-root' for BI views
* Hostgroup view BI Boxes omits the root level
* Finalized layout if view options and commands/filters/painteroptions.
+ * FIX: remove nasty JS error in sidebar
Mobile:
* FIX: Fixed logtime filter settings in all mobile views
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 1440a8d..f0496f3 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -84,21 +84,19 @@ function registerEdgeListeners(obj) {
continue;
if (window.addEventListener)
- edges[i].addEventListener("mousemove", function(e) {
- stopDragScroll(e);
- snapinTerminateDrag(e);
- return false;
- }, false);
+ edges[i].addEventListener("mousemove", stop_snapin_dragging,
false);
else
- edges[i].onmousemove = function(e) {
- stopDragScroll(e);
- snapinTerminateDrag(e);
- return false;
- };
+ edges[i].onmousemove = stop_snapin_dragging;
}
edges = null;
}
+function stop_snapin_dragging(e) {
+ stopDragScroll(e);
+ snapinTerminateDrag(e);
+ return false;
+}
+
/************************************************
* snapin drag/drop code
*************************************************/