codding standards

This commit is contained in:
Loïc Chapeaux
2002-01-03 12:09:30 +00:00
parent 0e7fc3d909
commit bf7aca1491
2 changed files with 7 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3: invalid xhtml statements. * db_details.php3: invalid xhtml statements.
* libraries/functions.js: codding standards.
2002-01-02 Marc Delisle <lem9@users.sourceforge.net> 2002-01-02 Marc Delisle <lem9@users.sourceforge.net>
* db_details.php3, libraries/functions.js: feature 474742: add check * db_details.php3, libraries/functions.js: feature 474742: add check

View File

@@ -326,6 +326,7 @@ function setPointer(theRow, thePointerColor)
return true; return true;
} // end of the 'setPointer()' function } // end of the 'setPointer()' function
/** /**
* Checks/unchecks all tables * Checks/unchecks all tables
* *
@@ -334,13 +335,15 @@ function setPointer(theRow, thePointerColor)
* *
* @return boolean always true * @return boolean always true
*/ */
function setCheckboxes(the_form, do_check) { function setCheckboxes(the_form, do_check)
var elts = document.forms[the_form].elements['selected_tbl[]']; {
var elts = document.forms[the_form].elements['selected_tbl[]'];
var elts_cnt = elts.length; var elts_cnt = elts.length;
for (var i = 0; i < elts_cnt; i++) { for (var i = 0; i < elts_cnt; i++) {
elts[i].checked = do_check; elts[i].checked = do_check;
} // end for } // end for
return true; return true;
} // end of the 'setCheckboxes()' function } // end of the 'setCheckboxes()' function