]> git.wh0rd.org - tt-rss.git/commitdiff
scroll to top of prefContent on update
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 10 Oct 2006 03:58:08 +0000 (04:58 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 10 Oct 2006 03:58:08 +0000 (04:58 +0100)
prefs.js

index e2cdd1126d751ecaebf4700f25175971153337d6..85ae91afc92da8ffba0d1123d2c787a8b6a2bec8 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1122,6 +1122,11 @@ function selectTab(id, noupdate) {
                        return
                }
 
+               try {
+                       var c = document.getElementById('prefContent'); 
+                       c.scrollTop = 0;
+               } catch (e) { };
+
                if (!noupdate) {
 
                        debug("selectTab: " + id + "(NU: " + noupdate + ")");