Module: check_mk
Branch: master
Commit: 0bfa42348307847c40d7431ece08696f0b4d732e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0bfa4234830784…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 1 10:01:33 2012 +0200
FIX: Fixed "select all" button for IE
---
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 15 ++++++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fcc3dd0..54a1456 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
* Make heading in each page clickable -> reload page
* FIX: Edit view: couldn't edit filter settings
* FIX: Fixed styling of links in multisite context help
+ * IX: Fixed "select all" button for IE
WATO:
* IX: Fixed "select all" button in hosts & folders for IE
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index d3f631a..707ca10 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1071,13 +1071,15 @@ function toggle_group_rows(checkbox) {
if(group_start === null)
group_start = 0;
if(group_end === null)
- group_end = rows.length - 1;
+ group_end = rows.length;
// Found the group start and end row of the checkbox!
var group_rows = [];
- for(var a = group_start; a < group_end; a++)
- if(rows[a].tagName === 'TR')
+ for(var a = group_start; a < group_end; a++) {
+ if(rows[a].tagName === 'TR') {
group_rows.push(rows[a]);
+ }
+ }
toggle_all_rows(group_rows);
group_rows = null;
@@ -1153,9 +1155,12 @@ function get_all_checkboxes(container) {
for(var i = 0; i < container.length; i++) {
var childs = container[i].getElementsByTagName('input');
- for(var a = 0; a < childs.length; a++)
- if(childs[a].type == 'checkbox')
+ for(var a = 0; a < childs.length; a++) {
+ if(childs[a].type == 'checkbox') {
checkboxes.push(childs[a]);
+ }
+ }
+
childs = null;
}