added a check/uncheck all feature

This commit is contained in:
Loïc Chapeaux
2002-04-28 13:08:12 +00:00
parent ced0a3e40b
commit 41b1940d74
3 changed files with 112 additions and 92 deletions

View File

@@ -420,7 +420,9 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
*/
function setCheckboxes(the_form, do_check)
{
var elts = document.forms[the_form].elements['selected_tbl[]'];
var elts = (typeof(document.forms[the_form].elements['selected_db[]']) != 'undefined')
? document.forms[the_form].elements['selected_db[]']
: document.forms[the_form].elements['selected_tbl[]'];
var elts_cnt = (typeof(elts.length) != 'undefined')
? elts.length
: 0;