Bug #3187141 - Double query box shown
This commit is contained in:
@@ -286,6 +286,12 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// real results are returned
|
// real results are returned
|
||||||
|
$received_data = $(data);
|
||||||
|
$zero_row_results = $received_data.find('textarea[name="sql_query"]');
|
||||||
|
// if zero rows are returned from the query execution
|
||||||
|
if ($zero_row_results.length > 0) {
|
||||||
|
$('#sqlquery').val($zero_row_results.val());
|
||||||
|
} else {
|
||||||
$('#sqlqueryresults').show();
|
$('#sqlqueryresults').show();
|
||||||
$("#sqlqueryresults").html(data);
|
$("#sqlqueryresults").html(data);
|
||||||
$("#sqlqueryresults").trigger('appendAnchor');
|
$("#sqlqueryresults").trigger('appendAnchor');
|
||||||
@@ -295,6 +301,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
PMA_init_slider();
|
PMA_init_slider();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}) // end $.post()
|
}) // end $.post()
|
||||||
}) // end SQL Query submit
|
}) // end SQL Query submit
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user