Module: check_mk
Branch: master
Commit: ff38225d227e9de66c6b5026e4efdbae9d2f0fe2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ff38225d227e9d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 16 10:10:22 2011 +0200
WATO: Sidebar is also reloaded after file add/delete
---
web/htdocs/wato.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 28fd26f..f6c2961 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -386,8 +386,8 @@ def mode_editfolder(phase, what, new):
the_thing["roles"] = roles
the_thing["attributes"] = attributes
- if what == "folder":
- html.reload_sidebar() # refresh WATO snapin
+ # refresh WATO snapin
+ html.reload_sidebar()
save_folder_config()
@@ -2218,6 +2218,8 @@ def delete_file_after_confirm(del_file):
save_folder_config()
call_hook_file_or_folder_deleted('file', del_file)
call_hook_host_changed(g_folder)
+ # refresh WATO snapin
+ html.reload_sidebar()
global g_file
g_file = None
return "folder"