diff --git a/ChangeLog b/ChangeLog index 40496c7e5..d9ff2c2cc 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ * libraries/functions.js - removed deprecated function setCheckboxesRange() - rewrote setCheckboxes() + libraries/server_privilegs.js + - removed setCheckboxes() 2005-11-11 Marc Delisle * lang/bulgarian: Update, thanks to Stanislav Yordanov - stanprog. diff --git a/libraries/server_privileges.js b/libraries/server_privileges.js index bc3a74f1e..4713c9e3f 100644 --- a/libraries/server_privileges.js +++ b/libraries/server_privileges.js @@ -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; } -