Module: check_mk
Branch: master
Commit: 40fced44929f8b70ba3f31f01e6ebe95433f9621
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=40fced44929f8b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 3 11:10:34 2013 +0200
View editor: hide table of views during deletion confirmation
---
web/htdocs/views.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index dacbdd2..5b69b1b 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -361,10 +361,13 @@ def page_edit_views(msg=None):
delname = html.var("_delete")
if delname:
deltitle = html.multisite_views[(config.user_id, delname)]['title']
- if html.confirm(_("Please confirm the deletion of the view
\"%s\".") % deltitle):
+ c = html.confirm(_("Please confirm the deletion of the view
\"%s\".") % deltitle)
+ if c:
del html.multisite_views[(config.user_id, delname)]
save_views(config.user_id)
html.reload_sidebar()
+ elif c == False:
+ return
if html.var('mode') == 'create':
datasource = html.var('datasource')