]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: only reset content scrollTop when tab is actually changed
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 6 Oct 2009 11:51:15 +0000 (15:51 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 6 Oct 2009 11:51:15 +0000 (15:51 +0400)
prefs.js

index c39ed1fc5fc43bceaf9de32690aa36986a2cae3a..7f1f89dfb612507632c3e98b7ac62afec24d1999 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1054,8 +1054,10 @@ function selectTab(id, noupdate, subop) {
        try {
 
                try {
-                       var c = $('prefContent');       
-                       c.scrollTop = 0;
+                       if (id != active_tab) {
+                               var c = $('prefContent');       
+                               c.scrollTop = 0;
+                       }
                } catch (e) { };
 
                if (!noupdate) {