Module: check_mk
Branch: master
Commit: c86c5895ff3b1dd51d8511847b4e0ec891e973f2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c86c5895ff3b1d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 13:22:56 2010 +0100
Removed scrollbars of sidebar in older IE versions and IE8 with compat mode
---
.bugs/9 | 3 +++
ChangeLog | 1 +
web/htdocs/main.py | 2 +-
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/.bugs/9 b/.bugs/9
index 1fa90e2..32b55c6 100644
--- a/.bugs/9
+++ b/.bugs/9
@@ -13,6 +13,9 @@ Multisite: Endgültig kompatibel mit IE machen. Bekannte Probleme:
=> Wurde behoben. Lösung: Async Request statt Sync Request
* Bug mit Verschieben der Sidebar wo das Tabellengerüst stehen bleibt
+ -> LM: Lässt sich bei mir nur im IE8 mit aktivierter Kompatibilitätsansicht
+ nachvollziehen
+
* Snapin "Views": Die Spiegelpunkte sind zu weit links, die Einrückung
klappt nicht.
* wenn man den Edit-Knopf nicht hat (wegen Berechtigungen), dann werden
diff --git a/ChangeLog b/ChangeLog
index 3d4bb6b..2659793 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,6 +33,7 @@
* Sidebar: Fixed snapin movement to the bottom of the snapin list in Opera
* Sidebar: Fixed scroll position saving in Opera
* Fixed reloading button animation in Chrome/IE (Changed request to async mode)
+ * Removed scrollbars of sidebar in older IE versions and IE8 with compat mode
Checks & Agents:
* Fixed problem with OnlyFrom: in Linux agent (df didn't work properly)
diff --git a/web/htdocs/main.py b/web/htdocs/main.py
index 854d989..44ff627 100644
--- a/web/htdocs/main.py
+++ b/web/htdocs/main.py
@@ -36,7 +36,7 @@ def page_index(html):
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico">
</head>
<frameset cols="280,*" frameborder="0" framespacing="0" border="0">
- <frame src="side.py" name="side" noresize>
+ <frame src="side.py" name="side" noresize scrolling="no">
<frame src="%s" name="main" noresize>
</frameset>
</html>
Module: check_mk
Branch: master
Commit: b9fc893094240202d637c3edc7b631ba707fef0a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b9fc8930942402…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 12:49:39 2010 +0100
Updated latest changes
---
.bugs/9 | 3 +++
ChangeLog | 2 +-
web/htdocs/js/check_mk.js | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/9 b/.bugs/9
index e7942e0..1fa90e2 100644
--- a/.bugs/9
+++ b/.bugs/9
@@ -9,6 +9,9 @@ Class: bug
Multisite: Endgültig kompatibel mit IE machen. Bekannte Probleme:
* reschedule Knopf geht irgendwie garnicht. Weder Animation noch reschedule.
Nur das reload macht er
+
+ => Wurde behoben. Lösung: Async Request statt Sync Request
+
* Bug mit Verschieben der Sidebar wo das Tabellengerüst stehen bleibt
* Snapin "Views": Die Spiegelpunkte sind zu weit links, die Einrückung
klappt nicht.
diff --git a/ChangeLog b/ChangeLog
index 4abb610..3d4bb6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,7 +32,7 @@
and services
* Sidebar: Fixed snapin movement to the bottom of the snapin list in Opera
* Sidebar: Fixed scroll position saving in Opera
- * Fixed reloading button animation in Chrome (Changed request to async mode)
+ * Fixed reloading button animation in Chrome/IE (Changed request to async mode)
Checks & Agents:
* Fixed problem with OnlyFrom: in Linux agent (df didn't work properly)
diff --git a/web/htdocs/js/check_mk.js b/web/htdocs/js/check_mk.js
index ded9a04..4e8f46d 100644
--- a/web/htdocs/js/check_mk.js
+++ b/web/htdocs/js/check_mk.js
@@ -237,7 +237,7 @@ function performAction(oLink, action, type, site, name1, name2) {
var oImg = oLink.childNodes[0];
oImg.src = 'images/icon_reloading.gif';
- // Chrome is not animating the gif during sync ajax request
+ // Chrome and IE are not animating the gif during sync ajax request
// So better use the async request here
get_url('nagios_action.py?action='+action+'&site='+site+'&host='+name1+'&service='+name2,
actionResponseHandler, oImg);
Module: check_mk
Branch: master
Commit: e98dcf3d6d1b02c55a222f60c8de465a8ea1c484
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e98dcf3d6d1b02…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 11:35:57 2010 +0100
Sidebar: Fixed scroll position saving in Opera
---
.bugs/18 | 10 +++++++---
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 11 +++++++++++
web/htdocs/sidebar.py | 2 +-
4 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/.bugs/18 b/.bugs/18
index 6cb4c2a..a191bac 100644
--- a/.bugs/18
+++ b/.bugs/18
@@ -1,10 +1,11 @@
Title: Browserprobleme bei Opera
Component: multisite
+State: done
+Class: bug
+Date: 2010-12-21 16:18:53
Benefit: 1
-State: open
Cost: 3
-Date: 2010-12-21 16:18:53
-Class: bug
+Fun: 0
* Bei Opera kann man kein Snapin nach ganz unten ziehen. Der Indikator
springt dann immer nach ganz oben.
@@ -13,3 +14,6 @@ springt dann immer nach ganz oben.
* Im Opera wird sich die aktuelle Scroll-Position der Sidebar nicht korrekt
gemerkt.
+
+2010-12-27 11:35:44: changed state open -> done
+Things are working now in current opera version
\ No newline at end of file
diff --git a/ChangeLog b/ChangeLog
index 26127f8..130dc30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,7 @@
* 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
+ * Sidebar: Fixed scroll position saving in Opera
Checks & Agents:
* Fixed problem with OnlyFrom: in Linux agent (df didn't work properly)
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 9eff28d..ab971cb 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -24,6 +24,7 @@
var browser = navigator.userAgent.toLowerCase();
var weAreIEF__k = ((browser.indexOf("msie") != -1) && (browser.indexOf("opera") == -1));
+var weAreOpera = browser.indexOf("opera") != -1;
var weAreFirefox = browser.indexOf("firefox") != -1 || browser.indexOf("namoroka") != -1;
var contentLocation = parent.frames[1].document.location;
@@ -456,6 +457,11 @@ function dragScroll(event) {
var diff = startY - event.clientY;
inhalt.scrollTop += diff;
+
+ // Opera does not fire onunload event which is used to store the scroll
+ // position. So call the store function manually here.
+ if(weAreOpera)
+ storeScrollPos();
startY = event.clientY;
@@ -496,6 +502,11 @@ function scrollWheel(event){
if (delta)
handle(delta);
+ // Opera does not fire onunload event which is used to store the scroll
+ // position. So call the store function manually here.
+ if(weAreOpera)
+ storeScrollPos();
+
if (event.preventDefault)
event.preventDefault();
else
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 53efd52..1403ebe 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -130,7 +130,7 @@ def page_side(h):
global html
html = h
- html.write("""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN "http://www.w3.org/TR/html4/frameset.dtd">
+ html.write("""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
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;