From 5d55e93c0391e56dc3f1ca0b6334f720ebd2a253 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 29 May 2005 23:36:53 +0000 Subject: [PATCH] bug #1209891, db list not refreshed after a manual DROP DATABASE --- ChangeLog | 3 +++ footer.inc.php | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6345bb795..043a44457 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ $Source$ 2005-05-29 Marc Delisle * tbl_change.php: bug #1184325, Label IDs mismatch for ENUM type, thanks to Ryan Schmidt + * footer.inc.php: bug #1209891, db list not refreshed when the left + frame is positionned on a db, then a manual DROP DATABASE it done + on another db 2005-05-27 Marc Delisle * tbl_properties.inc.php: bug #1205940, current timestamp checkbox diff --git a/footer.inc.php b/footer.inc.php index 84e760a2d..a013d6ce4 100644 --- a/footer.inc.php +++ b/footer.inc.php @@ -30,6 +30,15 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { $num_tables_disp = ' (-)'; } ?> + var forceQueryFrameReload = false; + + forceQueryFrameReload = true; + var dbBoxSetupDone = false; function dbBoxSetup() { if (dbBoxSetupDone != true) { @@ -47,7 +56,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { } if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.left && parent.frames.queryframe.document.left.lightm_db) { selidx = parent.frames.queryframe.document.left.lightm_db.selectedIndex; - if (parent.frames.queryframe.document.left.lightm_db.options[selidx].value == "") { + if (parent.frames.queryframe.document.left.lightm_db.options[selidx].value == "" && forceQueryFrameReload == false) { parent.frames.queryframe.document.left.lightm_db.options[selidx].text = ""; } else { parent.frames.queryframe.location.reload();