diff --git a/ChangeLog b/ChangeLog index 4af14bec5..9b597f957 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-01-02 Marc Delisle + * db_details.php3, libraries/functions.js: feature 474742: add + check all/uncheck all in the table list + 2002-01-01 Marc Delisle * tbl_replace.php3, bug 497919: $funcs was being reset() but was not defined (for example, only 1 field of type 'set') diff --git a/db_details.php3 b/db_details.php3 index bcbf19fd7..c5dafb04d 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -59,7 +59,7 @@ window.parent.frames['nav'].location.replace('./left.php3?lang== 3.23 - staybyte - 11 June 2001 else if (PMA_MYSQL_INT_VERSION >= 32300) { ?> -
+ @@ -331,6 +331,17 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) { + + + + + +   + + + + +
@@ -407,8 +418,18 @@ else {    + - + + + + +   + + + + + diff --git a/libraries/functions.js b/libraries/functions.js index aa5bf3e37..a5bfd2e3e 100644 --- a/libraries/functions.js +++ b/libraries/functions.js @@ -325,3 +325,22 @@ function setPointer(theRow, thePointerColor) return true; } // end of the 'setPointer()' function + +/** + * Checks/unchecks all tables + * + * @param string the form name + * @param boolean whether to check or to uncheck the element + * + * @return boolean always true + */ +function setCheckboxes(the_form, do_check) { + var elts = document.forms[the_form].elements['selected_tbl[]']; + var elts_cnt = elts.length; + + for (var i = 0; i < elts_cnt; i++) { + elts[i].checked = do_check; + } // end for + + return true; +} // end of the 'setCheckboxes()' function