summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-07 06:07:46 +0100
committerAndrew Dolgov <[email protected]>2006-12-07 06:07:46 +0100
commitd4eec882c001fb5e84b1aa1fb127816088f33433 (patch)
tree1e465db96467be67f5aa18b271d6fd21d4922bed /viewfeed.js
parenta6fc3ee5969153c24c6eb2beae459e95b33b159d (diff)
check for invalid active_post_id in moveToPost
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js4
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();