From 137bc3b3dbc2692596b0b0d53ae5182ab75ac2bc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 20:24:10 +0300 Subject: [PATCH] cdmScrollToArticle: set id as active if selected --- js/viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/viewfeed.js b/js/viewfeed.js index 373aa7dd..aee32b1d 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 } -- 2.39.5