Removed inline JavaScript calls to confirmLink for renaming the

database, added an id to the form and submit button
This commit is contained in:
ninadsp
2010-06-15 14:58:48 +05:30
parent 834b36bd6a
commit 2986a7b1a0

View File

@@ -23,6 +23,11 @@ require_once './libraries/mysql_charsets.lib.php';
// add blobstreaming library functions // add blobstreaming library functions
require_once "./libraries/blobstreaming.lib.php"; require_once "./libraries/blobstreaming.lib.php";
// add a javascript file for jQuery functions to handle Ajax actions
// also add jQueryUI
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
$GLOBALS['js_include'][] = 'db_operations.js';
/** /**
* Rename/move or copy database * Rename/move or copy database
*/ */
@@ -391,7 +396,7 @@ if (!$is_information_schema) {
* rename database * rename database
*/ */
?> ?>
<form method="post" action="db_operations.php" <form id="rename_db_form" method="post" action="db_operations.php"
onsubmit="return emptyFormElements(this, 'newname')"> onsubmit="return emptyFormElements(this, 'newname')">
<?php <?php
if (isset($db_collation)) { if (isset($db_collation)) {
@@ -426,7 +431,7 @@ if (!$is_information_schema) {
echo ')'; ?> echo ')'; ?>
</fieldset> </fieldset>
<fieldset class="tblFooters"> <fieldset class="tblFooters">
<input type="submit" value="<?php echo __('Go'); ?>" onclick="return confirmLink(this, 'CREATE DATABASE ... <?php echo __('and then'); ?> DROP DATABASE <?php echo PMA_jsFormat($db); ?>')" /> <input id="rename_db_input" type="submit" value="<?php echo __('Go'); ?>" />
</fieldset> </fieldset>
</form> </form>