Module: check_mk
Branch: master
Commit: 87c62cae6e99f69c65b85d1593efe8ad90322bc1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=87c62cae6e99f6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 3 12:57:33 2013 +0100
FIX: Views: toggling forms does not disable the checkbox button anymore
---
ChangeLog | 3 ++-
web/htdocs/js/checkmk.js | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8741afb..09abe5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -74,7 +74,8 @@
* FIX: Sidebar not raising exceptions on configured but not available snapins
* FIX: Quicksearch: Fixed Up/Down arrow handling in chrome
* FIX: Speedometer: Terminating data updates when snapin is removed from sidebar
- * Commands/Checkboxes buttons are now activated dynamically (depending on data
displayed)
+ * Views: Commands/Checkboxes buttons are now activated dynamically (depending on data
displayed)
+ * FIX: Views: toggling forms does not disable the checkbox button anymore
WATO:
* FIX: Fixed generated manual check definitions for checks without items
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 4d86f79..1f135e6 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1689,11 +1689,11 @@ function view_toggle_form(oButton, idForm) {
if (oForm)
oForm.style.display = display;
- // Make all other buttons inactive
+ // Make other buttons inactive
var allbuttons = document.getElementsByClassName('togglebutton');
for (var i=0; i<allbuttons.length; i++) {
var b = allbuttons[i];
- if (b != oButton && !has_class(b, "empth")) {
+ if (b != oButton && !has_class(b, "empth") &&
!has_class(b, "checkbox")) {
remove_class(b, "down")
add_class(b, "up")
}