X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;ds=sidebyside;f=js%2Fviewfeed.js;h=aee32b1d126c90f450a5401e6bc0de6f662517da;hb=137bc3b3dbc2692596b0b0d53ae5182ab75ac2bc;hp=373aa7dd08b4ce093f3c3f89f4acca1f9eabff27;hpb=08bee97858f374352357fbfd4969bf7ebf4c2f85;p=tt-rss.git 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 }