stay on the form when passwords don't match

This commit is contained in:
Marc Delisle
2004-09-14 16:04:07 +00:00
parent a5d9f7d1d9
commit f04a85f22e
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2004-09-14 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: stay on the form when passwords don't match
(after the js alert)
2004-09-14 Michal Čihař <michal@cihar.com>
* themes.php, libraries/common.lib.php, libraries/defines.lib.php,
libraries/select_theme.lib.php, themes/darkblue_orange/info.inc.php,

View File

@@ -1230,7 +1230,7 @@ if (empty($adduser) && empty($checkprivs)) {
}
if (empty($dbname)) {
echo ' <li>' . "\n"
. ' <form action="server_privileges.php" method="post" onsubmit="checkPassword(this);">' . "\n"
. ' <form action="server_privileges.php" method="post" onsubmit="return checkPassword(this);">' . "\n"
. PMA_generate_common_hidden_inputs('', '', 3)
. ' <input type="hidden" name="username" value="' . htmlspecialchars($username) . '" />' . "\n"
. ' <input type="hidden" name="hostname" value="' . htmlspecialchars($hostname) . '" />' . "\n";
@@ -1259,7 +1259,7 @@ if (empty($adduser) && empty($checkprivs)) {
. ' </form>' . "\n"
. ' </li>' . "\n"
. ' <li>' . "\n"
. ' <form action="server_privileges.php" method="post" onsubmit="checkPassword(this);">' . "\n"
. ' <form action="server_privileges.php" method="post" onsubmit="return checkPassword(this);">' . "\n"
. PMA_generate_common_hidden_inputs('', '', 3)
. ' <input type="hidden" name="old_username" value="' . htmlspecialchars($username) . '" />' . "\n"
. ' <input type="hidden" name="old_hostname" value="' . htmlspecialchars($hostname) . '" />' . "\n"