summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-06 15:51:15 +0400
committerAndrew Dolgov <[email protected]>2009-10-06 15:51:15 +0400
commitc97706bbee1018a4b28159b3cd598d4d279adebb (patch)
tree1ac5e727eb1df882a46381bf17ab9f612407c2f6 /prefs.js
parent3d48d3a15f7979656a422323e154c269c6cc25fa (diff)
prefs: only reset content scrollTop when tab is actually changed
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/prefs.js b/prefs.js
index c39ed1fc5..7f1f89dfb 100644
--- 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) {