summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-30 19:59:11 +0300
committerAndrew Dolgov <[email protected]>2018-11-30 19:59:11 +0300
commitebc09be79d32239881727c0958ae545b23e87f6e (patch)
tree3cb074018a94107d70d92f09f854760b2d45057d /js
parentefae0858183d1d71604ff3c9882c8e30dba3b336 (diff)
moveToPost: set unread to false when article is selected
Diffstat (limited to 'js')
-rwxr-xr-xjs/viewfeed.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index c54a85120..efb906cb6 100755
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -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) {