]> git.wh0rd.org Git - tt-rss.git/commitdiff
check for invalid active_post_id in moveToPost
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Dec 2006 05:07:46 +0000 (06:07 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Dec 2006 05:07:46 +0000 (06:07 +0100)
viewfeed.js

index 155fdd84134824236db9b08de288da75eac33f52..cc563449a551da8f7ccba1dc776eae2fea8b18ab 100644 (file)
@@ -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();