From: Andrew Dolgov Date: Thu, 7 Dec 2006 05:07:46 +0000 (+0100) Subject: check for invalid active_post_id in moveToPost X-Git-Tag: 1.2.6~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d4eec882c001fb5e84b1aa1fb127816088f33433;p=tt-rss.git check for invalid active_post_id in moveToPost --- diff --git a/viewfeed.js b/viewfeed.js index 155fdd84..cc563449 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -169,6 +169,10 @@ function moveToPost(mode) { var prev_id; var next_id; + if (!document.getElementById('RROW-' + active_post_id)) { + active_post_id = false; + } + if (active_post_id == false) { next_id = getFirstVisibleHeadlineId(); prev_id = getLastVisibleHeadlineId();