Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2011-10-31 00:41:35 +0400
committerRouslan Placella <rouslan@placella.com>2011-10-31 00:41:35 +0400
commit2a14fdec556a78a5682f57625611831f381c63e2 (patch)
tree1da4f0ef223eac0cc6811b9a4f8686d1435c56ff /js/db_search.js
parentad9ba4e6113bfb59c1700081695f52fc3db7cda0 (diff)
Scroll to results after clicking "Browse" in database search
Diffstat (limited to 'js/db_search.js')
-rw-r--r--js/db_search.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/db_search.js b/js/db_search.js
index d6a42ff610..d3e39fdf74 100644
--- a/js/db_search.js
+++ b/js/db_search.js
@@ -37,6 +37,10 @@ function loadResult(result_path, table_name, link, ajaxEnable)
$('#table-link').attr({"href" : 'sql.php?'+link }).text(table_name);
var url = result_path + " #sqlqueryresults";
$('#browse-results').load(url, null, function() {
+ $('html, body')
+ .animate({
+ scrollTop: $("#browse-results").offset().top
+ }, 1000);
PMA_ajaxRemoveMessage($msg);
// because under db_search, window.parent.table is not defined yet,
// we assign it manually from #table-link