Module: check_mk
Branch: master
Commit: 25dabeb656fee544579862b17ae56bc9f929dd11
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25dabeb656fee5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 27 14:48:04 2013 +0100
Back to view optionally with checkboxes cleared
---
ChangeLog | 4 +++-
web/htdocs/views.py | 5 +++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ea8d1d3..79beb2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,9 +6,11 @@
Multisite:
* New availability view for arbitrary host/service collections
* New option auth_by_http_header to use the value of a HTTP header
- variable for authentication (Useful in reverse proxy environments)
+ variable for authentication (Useful in reverse proxy environments)
* New permission that is needed for seeing views that other users
have defined (per default this is contained in all roles)
+ * New path back to the view after command exection with all
+ checkboxes cleared
Event Console:
* New rule feature: automatically delete event after actions
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index db2602f..025eff0 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2199,6 +2199,11 @@ def do_actions(view, what, action_rows, backurl):
if message:
if html.output_format == "html": # sorry for this hack
message += '<br><a href="%s">%s</a>' %
(backurl, _('Back to view'))
+ if html.var("show_checkboxes") == "1":
+ html.del_var("selection")
+ weblib.selection_id()
+ backurl += "&selection=" + html.var("selection")
+ message += '<br><a href="%s">%s</a>'
% (backurl, _('Back to view with checkboxes reset'))
html.message(message)
return True