Improved the error handling, when an empty result set is obtained.

This commit is contained in:
ninadsp
2010-07-14 20:21:10 +05:30
parent a40aaaa7b0
commit ea95907147

View File

@@ -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