Module: check_mk
Branch: master
Commit: 6f4631a4c3fe81b99b196c76df399af13942c4bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6f4631a4c3fe81…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 21 14:03:43 2011 +0100
Bugfix: Fixed javascript error when doing replication in distributed
wato environments when not having the sidebar open
---
ChangeLog | 2 +-
web/htdocs/htmllib.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 484706a..d5a9901 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,7 +13,7 @@
folder inventory
* NagVis auhtorization file generation is also executed on activate_changes
* Bugfix: Calling activate_changes hook also in distributed WATO setups
- * Bugfix: Fixed javascript error when doing replication in distributed
+ * Bugfix: Fixed javascript errors when doing replication in distributed
wato environments when not having the sidebar open
1.1.13i1:
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index b0db912..9ef5b01 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -822,7 +822,7 @@ class html:
def reload_sidebar(self):
if not self.has_var("_ajaxid"):
- self.javascript("parent.frames[0].location.reload();");
+ self.javascript("if(parent && parent.frames[0])
parent.frames[0].location.reload();");
# Get next transaction id for that user
def current_transid(self):