From 4ccf9b29b217d4dadadc496d4427695f490be7ac Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Tue, 19 Jun 2012 18:14:57 +0530 Subject: [PATCH] Fix sql results display in database search while deleting from search results --- js/db_search.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/db_search.js b/js/db_search.js index f1a18d48b4..3b3d33f663 100644 --- a/js/db_search.js +++ b/js/db_search.js @@ -29,7 +29,7 @@ function loadResult(result_path, table_name, link, ajaxEnable) $(function() { if(ajaxEnable) { /** Hides the results shown by the delete criteria */ - var $msg = PMA_ajaxShowMessage(); + var $msg = PMA_ajaxShowMessage(PMA_messages['strBrowsing'], false); $('#sqlqueryform').hide(); $('#togglequerybox').hide(); /** Load the browse results to the page */ @@ -81,11 +81,15 @@ function deleteResult(result_path, msg, ajaxEnable) /** Refresh the search results after the deletion */ document.getElementById('buttonGo').click(); $('#togglequerybox').html(PMA_messages['strHideQueryBox']); - PMA_ajaxRemoveMessage($msg); /** Show the results of the deletion option */ $('#browse-results').show(); $('#sqlqueryform').show(); $('#togglequerybox').show(); + $('html, body') + .animate({ + scrollTop: $("#browse-results").offset().top + }, 1000); + PMA_ajaxRemoveMessage($msg); }); } else { event.preventDefault();