diff options
author | Andrew Dolgov <[email protected]> | 2005-11-25 16:48:24 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-25 16:48:24 +0100 |
commit | 3055bc41043257ac9006b404d20f76049376e196 (patch) | |
tree | 1da695aed851e688751ba3efec69926a4aff1189 /functions.js | |
parent | 83957936be18e56ba4814154256b577cd374deec (diff) |
selectTableRowsByIdPrefix now checks required checkboxes
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/functions.js b/functions.js index 83246bfda..d236c4e18 100644 --- a/functions.js +++ b/functions.js @@ -461,7 +461,7 @@ function selectTableRow(r, do_select) { } } -function selectTableRowsByIdPrefix(content_id, prefix, do_select) { +function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select) { var content = document.getElementById(content_id); @@ -474,6 +474,13 @@ function selectTableRowsByIdPrefix(content_id, prefix, do_select) { if (content.rows[i].id.match(prefix)) { selectTableRow(content.rows[i], do_select); } + + var row_id = content.rows[i].id.replace(prefix, ""); + var check = document.getElementById(check_prefix + row_id); + + if (check) { + check.checked = do_select; + } } } |