summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-30 20:24:10 +0300
committerAndrew Dolgov <[email protected]>2018-11-30 20:24:10 +0300
commit137bc3b3dbc2692596b0b0d53ae5182ab75ac2bc (patch)
treeee5fd136be5d8c3d428bc5008cab9463fd86c6e3
parent08bee97858f374352357fbfd4969bf7ebf4c2f85 (diff)
cdmScrollToArticle: set id as active if selected
-rwxr-xr-xjs/viewfeed.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 373aa7dd0..aee32b1d1 100755
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -455,6 +455,8 @@ function moveToPost(mode, noscroll, noexpand) {
}
if (!getActiveArticleId()) {
+ console.log('hurr', rows[0]);
+
next_id = rows[0];
prev_id = rows[rows.length-1]
} else {
@@ -983,6 +985,8 @@ function cdmScrollToArticleId(id, force) {
// expanded cdm has a 4px margin now
ctr.scrollTop = parseInt(e.offsetTop) - 4;
+ setActiveArticleId(id);
+
// article is selected manually, set it read
toggleUnread(id, 0);1
}