mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
cdmScrollToArticle: set id as active if selected
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user