From d4eec882c001fb5e84b1aa1fb127816088f33433 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Dec 2006 06:07:46 +0100 Subject: [PATCH] check for invalid active_post_id in moveToPost --- viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.5