From 337d66f75e70f1e94ac6a45c959a9161079ecd1d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 30 Dec 2005 21:45:17 +0000 Subject: [PATCH] bug #1388135, IE and dropping databases --- ChangeLog | 3 +++ server_databases.php | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index fe564ca0d..48166e826 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-12-30 Marc Delisle + * server_databases.php: bug #1388135, IE and dropping databases + 2005-12-27 Marc Delisle * main.php, libraries/check_user_privileges.lib.php: - reenable a non-privileged user to change his password diff --git a/server_databases.php b/server_databases.php index fe5d8bb0a..ffe68a5fe 100644 --- a/server_databases.php +++ b/server_databases.php @@ -66,6 +66,14 @@ $dbstats = empty( $dbstats ) ? 0 : 1; /** * Drops multiple databases */ + +// workaround for IE behavior (it returns some coordinates based on where +// the mouse was on the Drop image): + +if (isset($drop_selected_dbs_x)) { + $drop_selected_dbs = 'Drop'; +} + if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg['AllowUserDropDatabase'])) { if (empty($selected_db) && ! (isset($query_type) && !empty($selected))) { $message = $strNoDatabasesSelected;