web/html/javascript/check_all.js | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
New commits:
commit f303ce55535c7a5e74bf706307f651a54ecbdf36
Author: Partha Aji <paji(a)redhat.com>
Date: Sun May 2 16:40:58 2010 -0400
Got the selectall checkbox working..
diff --git a/web/html/javascript/check_all.js b/web/html/javascript/check_all.js
index dacdfe5..b5331b1 100644
--- a/web/html/javascript/check_all.js
+++ b/web/html/javascript/check_all.js
@@ -80,12 +80,6 @@ function checkbox_clicked(thebox, set_label) {
**/
function process_checkbox_clicked(thebox, set_label, checkall, children, members,
parent_id ) {
- var form_name = thebox.form.name;
- if (form_name == "") {
- form_name = thebox.form.id;
- }
- var cboxes = eval("document.forms['" + form_name + "']."
+ thebox.name);
- process_single_checkbox(cboxes, checkall);
var a = new Array();
a.push(thebox.value);
@@ -108,6 +102,13 @@ function process_checkbox_clicked(thebox, set_label, checkall,
children, members
}
process_single_checkbox(boxes, parentBox);
}
+ var form_name = thebox.form.name;
+ if (form_name == "") {
+ form_name = thebox.form.id;
+ }
+ var cboxes = eval("document.forms['" + form_name + "']."
+ thebox.name);
+ process_single_checkbox(cboxes, checkall);
+
update_server_set("ids", set_label, thebox.checked, a);
}
Show replies by thread