Module: check_mk
Branch: master
Commit: 20f725e588e800e75f2592db99bb31b1624d369e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=20f725e588e800…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Mar 29 11:33:22 2017 +0200
Continued customer sidebar snapin
Change-Id: I37d99f3f42b2c4a968b67d34ca3272af8a1c5bfb
---
web/htdocs/images/button_sitestatus_partial.png | Bin 0 -> 1025 bytes
web/htdocs/js/sidebar.js | 8 ++++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/images/button_sitestatus_partial.png
b/web/htdocs/images/button_sitestatus_partial.png
new file mode 100644
index 0000000..4ec2117
Binary files /dev/null and b/web/htdocs/images/button_sitestatus_partial.png differ
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 229a66c..eaab460 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -670,10 +670,14 @@ function reload_main_plus_sidebar(id, code) {
parent.frames[0].location.reload(); /* reload side bar */
}
+// TODO move to managed/web/htdocs/js
+function switch_customer(customer_id, switch_state) {
+ get_url("switch_customer.py?_customer_switch=" + customer_id +
":" + switch_state,
+ reload_main_plus_sidebar, null);
+}
+
function switch_site(switchvar) {
get_url("switch_site.py?" + switchvar, reload_main_plus_sidebar, null);
- /* After the site switch has been done, everything must be reloaded since
- everything is affected by the switch */
}
var g_seconds_to_update = null;