Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-10-21 08:19:26 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-10-21 08:19:26 +0400
commite0745dfe9a4e3d8c3d92f280c7de18314ba9e739 (patch)
tree92cf54e493384126c7e397af30162008c602c79e /js/tbl_select.js
parent95966057675932ccf4fbe687575ba4eff0c31462 (diff)
bug #3578776 [search] Editing SQL not possible when no records found
Diffstat (limited to 'js/tbl_select.js')
-rw-r--r--js/tbl_select.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/tbl_select.js b/js/tbl_select.js
index 85cf9d3ab5..ce8354f72e 100644
--- a/js/tbl_select.js
+++ b/js/tbl_select.js
@@ -97,9 +97,12 @@ $(function() {
$.post($search_form.attr('action'), values, function(data) {
PMA_ajaxRemoveMessage($msgbox);
if (data.success == true) {
- // found results
- $("#sqlqueryresults").html(data.message);
- $("#sqlqueryresults").trigger('makegrid');
+ if (data.sql_query != null) { // zero rows
+ $("#sqlqueryresults").html(data.sql_query);
+ } else { // results found
+ $("#sqlqueryresults").html(data.message);
+ $("#sqlqueryresults").trigger('makegrid');
+ }
$('#tbl_search_form')
// workaround for bug #3168569 - Issue on toggling the "Hide search criteria" in chrome.
.slideToggle()