Module: check_mk
Branch: master
Commit: c711f14ccfcbf92a14f6aaa433c1abdea8fe06d1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c711f14ccfcbf9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 11:12:37 2010 +0100
Sidebar: Fixed snapin movement to the bottom of the snapin list in Opera
---
.bugs/18 | 2 ++
ChangeLog | 1 +
web/htdocs/.f12 | 2 +-
web/htdocs/js/sidebar.js | 17 +++++++++--------
4 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/.bugs/18 b/.bugs/18
index bb54a1d..6cb4c2a 100644
--- a/.bugs/18
+++ b/.bugs/18
@@ -9,5 +9,7 @@ Class: bug
* Bei Opera kann man kein Snapin nach ganz unten ziehen. Der Indikator
springt dann immer nach ganz oben.
+ ==> Ist behoben.
+
* Im Opera wird sich die aktuelle Scroll-Position der Sidebar nicht korrekt
gemerkt.
diff --git a/ChangeLog b/ChangeLog
index af97e19..26127f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@
* new datasource "alert_stats" for computing alert statistics
* new view "Alert Statistics" showing alert statistics for all hosts
and services
+ * Sidebar: Fixed snapin movement to the bottom of the snapin list in Opera
Checks & Agents:
* Fixed problem with OnlyFrom: in Linux agent (df didn't work properly)
diff --git a/web/htdocs/.f12 b/web/htdocs/.f12
index d836a21..c52f4b1 100644
--- a/web/htdocs/.f12
+++ b/web/htdocs/.f12
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
-sudo cp -r images *.css *.py *.js /omd/versions/default/share/check_mk/web/htdocs
+sudo cp -r images *.css *.py js /omd/versions/default/share/check_mk/web/htdocs
sudo cp ../plugins/pages/*.py /omd/versions/default/share/check_mk/web/plugins/pages/
sudo cp ../plugins/views/*.py /omd/versions/default/share/check_mk/web/plugins/views/
sudo cp ../plugins/sidebar/*.py
/omd/versions/default/share/check_mk/web/plugins/sidebar/
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 9231551..9eff28d 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -250,14 +250,11 @@ function snapinStopDrag(event) {
}
function getDivChildNodes(node) {
- if(typeof node.children === 'undefined') {
- var children = [];
- for(var i in node.childNodes)
- if(node.childNodes[i].tagName === 'DIV')
- children.push(node.childNodes[i]);
- return children;
- } else
- return node.children;
+ var children = [];
+ for(var i in node.childNodes)
+ if(node.childNodes[i].tagName === 'DIV')
+ children.push(node.childNodes[i]);
+ return children;
}
function getSnapinList() {
@@ -346,6 +343,10 @@ function getSnapinTargetPos() {
* misc sidebar stuff
*************************************************/
+function debug(s) {
+ window.parent.frames[1].document.write(s+'<br />');
+}
+
function pageHeight() {
var h;