bug #1388135, IE and dropping databases

This commit is contained in:
Marc Delisle
2005-12-30 21:45:17 +00:00
parent 95c3882684
commit 337d66f75e
2 changed files with 11 additions and 0 deletions

View File

@@ -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;