Module: check_mk
Branch: master
Commit: 981f9b371e9a8c6667235fd82fc9b52491b0247f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=981f9b371e9a8c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Sep 17 09:36:06 2013 +0200
Fixed initialization bug in messanging init
---
web/htdocs/sidebar.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 8c1f4fe..129ef6c 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -175,9 +175,13 @@ def sidebar_foot():
def page_side():
if not config.may("general.see_sidebar"):
return
+ if config.sidebar_notify_interval is not None:
+ interval = config.sidebar_notify_interval
+ else:
+ interval = 'null'
html.html_head(_("Check_MK Sidebar"), javascripts=["sidebar"],
stylesheets=["sidebar", "status"])
html.write('<body class="side" onload="initScrollPos();
setSidebarHeight(); init_messages(%s);" '
- 'onunload="storeScrollPos()">\n' %
config.sidebar_notify_interval or 'null')
+ 'onunload="storeScrollPos()">\n' % interval)
html.write('<div id="check_mk_sidebar">\n')
views.load_views()