From: Andrew Dolgov Date: Tue, 10 Oct 2006 03:58:08 +0000 (+0100) Subject: scroll to top of prefContent on update X-Git-Tag: 1.2.4~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a422968f92f877186ecafdf8b59fa155b028cb97;p=tt-rss.git scroll to top of prefContent on update --- diff --git a/prefs.js b/prefs.js index e2cdd112..85ae91af 100644 --- a/prefs.js +++ b/prefs.js @@ -1122,6 +1122,11 @@ function selectTab(id, noupdate) { return } + try { + var c = document.getElementById('prefContent'); + c.scrollTop = 0; + } catch (e) { }; + if (!noupdate) { debug("selectTab: " + id + "(NU: " + noupdate + ")");