Improved the error handling, when an empty result set is obtained.
This commit is contained in:
@@ -24,10 +24,18 @@ $(document).ready(function() {
|
||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
$.post($(this).attr('action'), $(this).serialize() , function(data) {
|
||||
if(data.success == true) {
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
}
|
||||
else if (data.success == false ) {
|
||||
PMA_ajaxShowMessage(data.error);
|
||||
}
|
||||
else {
|
||||
$("#sqlqueryresults").html(data);
|
||||
if($("#togglequerybox").siblings(":visible").length > 0) {
|
||||
$("#togglequerybox").trigger('click');
|
||||
}
|
||||
}
|
||||
})
|
||||
}) // end SQL Query submit
|
||||
|
||||
|
Reference in New Issue
Block a user