From ecdbb6dcc73aa97fc4df90d92e0ff4b4530f69e9 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 30 Dec 2010 08:14:46 -0500 Subject: [PATCH] Bug #3141319 Query execution time changes and disappears when no rows are returned --- js/sql.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/sql.js b/js/sql.js index 875b5017c..96483e0e7 100644 --- a/js/sql.js +++ b/js/sql.js @@ -224,7 +224,10 @@ $(document).ready(function() { $.post($(this).attr('action'), $(this).serialize() , function(data) { if(data.success == true) { - PMA_ajaxShowMessage(data.message); + // fade out previous success message, if any + $('.success').fadeOut(); + // show a message that stays on screen + $('#sqlqueryform').before(data.message); $('#sqlqueryresults').show(); // this happens if a USE command was typed if (typeof data.reload != 'undefined') { @@ -243,6 +246,7 @@ $(document).ready(function() { $('#sqlqueryresults').hide(); } else { + // real results are returned $('#sqlqueryresults').show(); $("#sqlqueryresults").html(data); $("#sqlqueryresults").trigger('appendAnchor'); -- 2.11.4.GIT