Bug #3166950 [AJAX] Empty dialog after attempt to create already existing table
This commit is contained in:
@@ -1685,6 +1685,18 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.get($form.attr('action'), $form.serialize(), function(data) {
|
$.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>')
|
$('<div id="create_table_dialog"></div>')
|
||||||
.append(data)
|
.append(data)
|
||||||
.dialog({
|
.dialog({
|
||||||
@@ -1694,6 +1706,7 @@ $(document).ready(function() {
|
|||||||
open: PMA_verifyTypeOfAllColumns,
|
open: PMA_verifyTypeOfAllColumns,
|
||||||
buttons : button_options
|
buttons : button_options
|
||||||
}); // end dialog options
|
}); // end dialog options
|
||||||
|
}
|
||||||
}) // end $.get()
|
}) // end $.get()
|
||||||
|
|
||||||
// empty table name and number of columns from the minimal form
|
// empty table name and number of columns from the minimal form
|
||||||
|
Reference in New Issue
Block a user