From e083d8438afe74c8568c922e943f09e161435d40 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 9 Apr 2011 12:03:56 +0530 Subject: [PATCH] Bug #3281333 AJAX response does not remove old contents --- js/sql.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/sql.js b/js/sql.js index 4e34126a0..6895b16c5 100644 --- a/js/sql.js +++ b/js/sql.js @@ -290,6 +290,9 @@ $(document).ready(function() { } else { // real results are returned + // fade out previous messages, if any + $('.success').fadeOut(); + $('.sqlquery_message').fadeOut(); $received_data = $(data); $zero_row_results = $received_data.find('textarea[name="sql_query"]'); // if zero rows are returned from the query execution