Bug #3166950 [AJAX] Empty dialog after attempt to create already existing table

This commit is contained in:
Madhura Jayaratne
2011-01-30 01:32:05 +05:30
parent dea96e2e5a
commit 1c50e94ddd

View File

@@ -1685,6 +1685,18 @@ $(document).ready(function() {
}
$.get($form.attr('action'), $form.serialize(), function(data) {
//in the case of an error, show the error message returned.
if (data.success != undefined && data.success == false) {
$('<div id="create_table_dialog"></div>')
.append(data.error)
.dialog({
title: PMA_messages['strCreateTable'],
height: 260,
width: 900,
open: PMA_verifyTypeOfAllColumns,
buttons : button_options
})// end dialog options
} else {
$('<div id="create_table_dialog"></div>')
.append(data)
.dialog({
@@ -1694,6 +1706,7 @@ $(document).ready(function() {
open: PMA_verifyTypeOfAllColumns,
buttons : button_options
}); // end dialog options
}
}) // end $.get()
// empty table name and number of columns from the minimal form