diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-06-19 16:44:57 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-06-19 16:44:57 +0400 |
commit | 4ccf9b29b217d4dadadc496d4427695f490be7ac (patch) | |
tree | f24eba627e4d22e869b8aae16132108c8313a805 /js/db_search.js | |
parent | e729dc9a184789b39ce76b8bdaf1f185f30c39c1 (diff) |
Fix sql results display in database search while deleting from search results
Diffstat (limited to 'js/db_search.js')
-rw-r--r-- | js/db_search.js | 8 |
1 files 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(); |