]> git.joonet.de Git - adminer.git/commitdiff
Don't copy tables (to the same database) by AJAX
authorJakub Vrana <jakub@vrana.cz>
Wed, 9 Feb 2011 14:29:51 +0000 (15:29 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 9 Feb 2011 14:29:51 +0000 (15:29 +0100)
adminer/db.inc.php

index 2c8948dd82ddcdd6d053a127a0c8c2dea0d687fe..eaa3bc9aa64d4fc60cd3b16c97ebc1c129ac5190 100644 (file)
@@ -80,7 +80,7 @@ if ($adminer->homepage()) {
                                        echo "<p>" . lang('Move to other database') . ": ";
                                        echo ($databases ? html_select("target", $databases, $db) : '<input name="target" value="' . h($db) . '">');
                                        echo " <input type='submit' name='move' value='" . lang('Move') . "' onclick='eventStop(event);'>";
-                                       echo (support("copy") ? " <input type='submit' name='copy' value='" . lang('Copy') . "'>" : "");
+                                       echo (support("copy") ? " <input type='submit' name='copy' value='" . lang('Copy') . "' onclick='eventStop(event);'>" : "");
                                        echo "\n";
                                }
                        }