[extensions-web] js: Fix scrolling to the top in WebKit
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Fix scrolling to the top in WebKit
- Date: Sun, 3 Jun 2012 01:22:43 +0000 (UTC)
commit dd20e44d6734877c2076239541a1cd36cb746782
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Jun 2 21:21:21 2012 -0400
js: Fix scrolling to the top in WebKit
sweettooth/static/js/main.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 76a76f8..ca1d79a 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -118,7 +118,8 @@ function($, messages, modal, hashParamUtils) {
$('#extensions-list .before-paginator').fsUIify();
// Scroll the page back up to the top.
- document.documentElement.scrollTop = 0;
+ document.documentElement.scrollTop = 0; // Firefox
+ document.body.scrollTop = 0; // WebKit
}).trigger('load-page');
var term = "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]