- removed setCheckboxes()
This commit is contained in:
@@ -10,6 +10,8 @@ $Source$
|
|||||||
* libraries/functions.js
|
* libraries/functions.js
|
||||||
- removed deprecated function setCheckboxesRange()
|
- removed deprecated function setCheckboxesRange()
|
||||||
- rewrote setCheckboxes()
|
- rewrote setCheckboxes()
|
||||||
|
libraries/server_privilegs.js
|
||||||
|
- removed setCheckboxes()
|
||||||
|
|
||||||
2005-11-11 Marc Delisle <lem9@users.sourceforge.net>
|
2005-11-11 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/bulgarian: Update, thanks to Stanislav Yordanov - stanprog.
|
* lang/bulgarian: Update, thanks to Stanislav Yordanov - stanprog.
|
||||||
|
@@ -58,39 +58,6 @@ function checkAddUser(the_form)
|
|||||||
} // end of the 'checkAddUser()' function
|
} // 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
|
* Generate a new password, which may then be copied to the form
|
||||||
* with suggestPasswordCopy().
|
* with suggestPasswordCopy().
|
||||||
@@ -124,4 +91,3 @@ function suggestPasswordCopy() {
|
|||||||
document.getElementById('text_pma_pw2').value = document.getElementById('generated_pw').value;
|
document.getElementById('text_pma_pw2').value = document.getElementById('generated_pw').value;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user