[extensions-web] js: Scroll to the top when a new paginator page is loaded



commit 3429584d083a04bc03bde730326bc5d0759677f0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 26 06:05:28 2012 -0500

    js: Scroll to the top when a new paginator page is loaded

 sweettooth/static/js/main.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 8289262..737c2ed 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -95,6 +95,9 @@ require(['jquery', 'messages', 'modal',
             bind('page-loaded', function() {
                 $('li.extension').addOutOfDateIndicator();
                 $('#extensions-list .before-paginator').fsUIify();
+
+                // Scroll the page back up to the top.
+                document.documentElement.scrollTop = 0;
             });
 
         $('#error_report').fillInErrors();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]