From c3e75e96a9c2b19f1abed2c321b355ee25a0809b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 20 Feb 2011 07:58:40 -0500 Subject: [PATCH] The create table dialog popup is not always displayed so do not attempt to remove it --- js/functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 328c5581f..6233ce4da 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1753,7 +1753,10 @@ $(document).ready(function() { if(data.success == true) { $('#properties_message').html(''); PMA_ajaxShowMessage(data.message); - $("#create_table_dialog").dialog("close").remove(); + // Only if the create table dialog (distinct panel) exists + if ($("#create_table_dialog").length > 0) { + $("#create_table_dialog").dialog("close").remove(); + } /** * @var tables_table Object referring to the element that holds the list of tables