diff --git a/ChangeLog b/ChangeLog index 19c8daf11..2916a340f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-03-23 Olivier Mueller + * server_privileges.php, libraries/server_privileges.js: added + (un)checkall links to the "Global privileges" edition form. + Todo: make it work even if JS is disabled + local links + for the "Data" and "Structure" checkboxes groups. + 2004-04-02 Alexander M. Turek * lang/german-*.inc.php: Fixed a typo. diff --git a/libraries/server_privileges.js b/libraries/server_privileges.js index a3aded4ed..3ccf6780b 100644 --- a/libraries/server_privileges.js +++ b/libraries/server_privileges.js @@ -69,7 +69,9 @@ function checkAddUser(the_form) */ function setCheckboxes(the_form, the_checkboxes, do_check) { - var elts = document.forms[the_form].elements[the_checkboxes + '[]']; + 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; @@ -83,4 +85,4 @@ function setCheckboxes(the_form, the_checkboxes, do_check) } // end if... else return true; -} // end of the 'setCheckboxes()' function \ No newline at end of file +} // end of the 'setCheckboxes()' function diff --git a/server_privileges.php b/server_privileges.php index 3ca12497f..bf6968f47 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -371,7 +371,10 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = . $spaces . '  ' . ($db == '*' ? $GLOBALS['strGlobalPrivileges'] : ($table == '*' ? $GLOBALS['strDbPrivileges'] : $GLOBALS['strTblPrivileges'])) . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" - . $spaces . ' ' . $GLOBALS['strEnglishPrivileges'] . '' . "\n" + . $spaces . ' ' . $GLOBALS['strEnglishPrivileges'] . '
' . "\n" + . $spaces . ' ' . $GLOBALS['strCheckAll'] . '' . "\n" + . $spaces . '    ' . "\n" + . $spaces . ' ' . $GLOBALS['strUncheckAll'] . '' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . '  ' . $GLOBALS['strData'] . ' ' . "\n" @@ -1030,7 +1033,7 @@ if (empty($adduser) && empty($checkprivs)) { unset($res); echo '