Skip to content

Commit

Permalink
Only reload the form with columns if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Oct 30, 2012
1 parent a6f5470 commit 4a13e54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/tbl_structure.js
Expand Up @@ -556,8 +556,12 @@ $(function() {
} else if ($("#add_columns").length > 0) {
$("#add_columns").dialog("close").remove();
}
/*Reload the field form*/
reloadFieldForm(data.message);
/* Reload the field form */
if ($("#fieldsForm").length) {
reloadFieldForm(data.message);
} else {
PMA_ajaxShowMessage(data.message);
}
} else {
var $temp_div = $("<div id='temp_div'><div>").append(data.error);
var $error = $temp_div.find(".error code").addClass("error");
Expand Down

0 comments on commit 4a13e54

Please sign in to comment.