diff options
author | Andrew Dolgov <[email protected]> | 2011-11-07 15:46:28 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-07 15:46:28 +0400 |
commit | 28364067638ca31ca03cf63e4ec0dc581731171d (patch) | |
tree | 80d55e45f10dc9380ed3df63c4d1a06fcef0dad7 /viewfeed.js | |
parent | 8ad4bac0fd44220528896d8b5fedbb84220b1ea4 (diff) |
experimental fix for the infamous mail auto-reading feature reported by Mark Waters
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/viewfeed.js b/viewfeed.js index 55f614875..cef9fb045 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -16,13 +16,13 @@ var cids_requested = []; var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null; -function headlines_callback2(transport, offset, background) { +function headlines_callback2(transport, offset, background, infscroll_req) { try { handle_rpc_json(transport); loading_set_progress(25); - console.log("headlines_callback2 [offset=" + offset + "] B:" + background); + console.log("headlines_callback2 [offset=" + offset + "] B:" + background + " I:" + infscroll_req); var is_cat = false; var feed_id = false; @@ -54,7 +54,7 @@ function headlines_callback2(transport, offset, background) { setActiveFeedId(feed_id, is_cat); try { - if (offset == 0) { + if (offset == 0 && infscroll_req == false) { $("headlines-frame").scrollTop = 0; } } catch (e) { }; @@ -73,7 +73,7 @@ function headlines_callback2(transport, offset, background) { var articles = reply['articles']; var runtime_info = reply['runtime-info']; - if (offset == 0) { + if (offset == 0 && infscroll_req == false) { dijit.byId("headlines-frame").attr('content', reply['headlines']['content']); |