Bug #3281333 AJAX response does not remove old contents

This commit is contained in:
Madhura Jayaratne
2011-04-09 12:03:56 +05:30
parent 514b852cd8
commit e083d8438a

View File

@@ -290,6 +290,9 @@ $(document).ready(function() {
} }
else { else {
// real results are returned // real results are returned
// fade out previous messages, if any
$('.success').fadeOut();
$('.sqlquery_message').fadeOut();
$received_data = $(data); $received_data = $(data);
$zero_row_results = $received_data.find('textarea[name="sql_query"]'); $zero_row_results = $received_data.find('textarea[name="sql_query"]');
// if zero rows are returned from the query execution // if zero rows are returned from the query execution