summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-19 18:24:26 +0100
committerAndrew Dolgov <[email protected]>2008-02-19 18:24:26 +0100
commit8b557634e2dcfbd0d990cf02185dd30d54ea5d5b (patch)
treef84e160ac2f309840b3d6b7cc9562db3c41f68d2 /tt-rss.js
parent1924fa1bbfd53f4d337e2995cfc524954091eee8 (diff)
hidden feedlist: save scroll offset
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 9cbe05134..cd65fe799 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -13,6 +13,7 @@ var active_feed_id = 0;
var active_feed_is_cat = false;
var number_of_feeds = 0;
var sanity_check_done = false;
+var _hfd_scrolltop = 0;
var init_params = new Object();
@@ -748,8 +749,10 @@ function toggle_feedlist() {
if (!Element.visible(fl)) {
Element.show(fl);
fl.style.zIndex = 30;
+ fl.scrollTop = _hfd_scrolltop;
} else {
- Element.hide(fl);
+ _hfd_scrolltop = fl.scrollTop;
+ Element.hide(fl);
// Effect.Fade(fl, {duration : 0.2,
// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }});
}