The branch, master has been updated via 7d9a0f439b01a5547c262a94363efaa4ad1dcbf5 (commit) from fe5577568d6d63f6b49bfb33f3b104baac37463a (commit)
- Log ----------------------------------------------------------------- commit 7d9a0f439b01a5547c262a94363efaa4ad1dcbf5 Author: Marc Delisle marc@infomarc.info Date: Fri Oct 8 08:05:51 2010 -0400
hide previous results when showing an error
-----------------------------------------------------------------------
Summary of changes: js/sql.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/js/sql.js b/js/sql.js index d40cdd4..2eaff0c 100644 --- a/js/sql.js +++ b/js/sql.js @@ -197,6 +197,7 @@ $(document).ready(function() { $.post($(this).attr('action'), $(this).serialize() , function(data) { if(data.success == true) { PMA_ajaxShowMessage(data.message); + $('#sqlqueryresults').show(); // this happens if a USE command was typed if (typeof data.reload != 'undefined') { $form.find('input[name=db]').val(data.db); @@ -211,8 +212,10 @@ $(document).ready(function() { else if (data.success == false ) { // show an error message that stays on screen $('#sqlqueryform').before(data.error); + $('#sqlqueryresults').hide(); } else { + $('#sqlqueryresults').show(); $("#sqlqueryresults").html(data); $("#sqlqueryresults").trigger('appendAnchor'); if($("#togglequerybox").siblings(":visible").length > 0) {
hooks/post-receive