The create table dialog popup is not always displayed so do not attempt to remove it

This commit is contained in:
Marc Delisle
2011-02-20 07:58:40 -05:00
parent 8dee199672
commit c3e75e96a9

View File

@@ -1753,7 +1753,10 @@ $(document).ready(function() {
if(data.success == true) { if(data.success == true) {
$('#properties_message').html(''); $('#properties_message').html('');
PMA_ajaxShowMessage(data.message); PMA_ajaxShowMessage(data.message);
// Only if the create table dialog (distinct panel) exists
if ($("#create_table_dialog").length > 0) {
$("#create_table_dialog").dialog("close").remove(); $("#create_table_dialog").dialog("close").remove();
}
/** /**
* @var tables_table Object referring to the <tbody> element that holds the list of tables * @var tables_table Object referring to the <tbody> element that holds the list of tables