]> git.wh0rd.org Git - tt-rss.git/commitdiff
moveToPost: set unread to false when article is selected
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 30 Nov 2018 16:59:11 +0000 (19:59 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 30 Nov 2018 16:59:11 +0000 (19:59 +0300)
js/viewfeed.js

index c54a851203a71a4de980122a355fefe5174bacfb..efb906cb68479e95bc65c97566e00156e3cd0aa8 100755 (executable)
@@ -491,6 +491,7 @@ function moveToPost(mode, noscroll, noexpand) {
 
                                } else if (next_id) {
                                        cdmScrollToArticleId(next_id, true);
+                                       toggleUnread(next_id, 0);
                                }
 
                        } else if (next_id) {
@@ -515,6 +516,7 @@ function moveToPost(mode, noscroll, noexpand) {
                                        scrollArticle(-ctr.offsetHeight/4);
                                } else if (prev_id) {
                                        cdmScrollToArticleId(prev_id, noscroll);
+                                       toggleUnread(next_id, 0);1
                                }
 
                        } else if (prev_id) {