From: Andrew Dolgov Date: Tue, 6 Oct 2009 11:51:15 +0000 (+0400) Subject: prefs: only reset content scrollTop when tab is actually changed X-Git-Tag: 1.3.4~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c97706bbee1018a4b28159b3cd598d4d279adebb;p=tt-rss.git prefs: only reset content scrollTop when tab is actually changed --- diff --git a/prefs.js b/prefs.js index c39ed1fc..7f1f89df 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) {