- removed setCheckboxes()

This commit is contained in:
Sebastian Mendel
2005-11-13 08:07:39 +00:00
parent be2197b4ae
commit d5da4e6aba
2 changed files with 2 additions and 34 deletions

View File

@@ -58,39 +58,6 @@ function checkAddUser(the_form)
} // end of the 'checkAddUser()' function
/**
* Checks/unchecks all checkboxes
*
* @param string the form name
* @param atring the name of the array with the checlboxes
* @param boolean whether to check or to uncheck the element
*
* @return boolean always true
*/
function setCheckboxes(the_form, the_checkboxes, do_check)
{
var elts = (the_checkboxes != '')
? document.forms[the_form].elements[the_checkboxes + '[]']
: document.forms[the_form].elements;
var elts_cnt = (typeof(elts.length) != 'undefined')
? elts.length
: 0;
if (elts_cnt) {
for (var i = 0; i < elts_cnt; i++) {
elts[i].checked = do_check;
} // end for
} else {
elts.checked = do_check;
} // end if... else
return true;
} // end of the 'setCheckboxes()' function
/**
* Generate a new password, which may then be copied to the form
* with suggestPasswordCopy().
@@ -124,4 +91,3 @@ function suggestPasswordCopy() {
document.getElementById('text_pma_pw2').value = document.getElementById('generated_pw').value;
return true;
}