diff options
author | Andrew Dolgov <[email protected]> | 2009-10-06 15:51:15 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-10-06 15:51:15 +0400 |
commit | c97706bbee1018a4b28159b3cd598d4d279adebb (patch) | |
tree | 1ac5e727eb1df882a46381bf17ab9f612407c2f6 /prefs.js | |
parent | 3d48d3a15f7979656a422323e154c269c6cc25fa (diff) |
prefs: only reset content scrollTop when tab is actually changed
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |