diff options
author | Andrew Dolgov <[email protected]> | 2006-12-07 06:07:46 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-12-07 06:07:46 +0100 |
commit | d4eec882c001fb5e84b1aa1fb127816088f33433 (patch) | |
tree | 1e465db96467be67f5aa18b271d6fd21d4922bed | |
parent | a6fc3ee5969153c24c6eb2beae459e95b33b159d (diff) |
check for invalid active_post_id in moveToPost
-rw-r--r-- | viewfeed.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js index 155fdd841..cc563449a 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(); |