prefs: only reset content scrollTop when tab is actually changed

This commit is contained in:
Andrew Dolgov 2009-10-06 15:51:15 +04:00
parent 3d48d3a15f
commit c97706bbee
1 changed files with 4 additions and 2 deletions

View File

@ -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) {