1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 23:05:56 +00:00

Headlines.click: do not set article active if it already is

Headlines.onLoaded: reset active article if not called in append mode
This commit is contained in:
Andrew Dolgov
2018-12-05 07:41:55 +03:00
parent 2621180b54
commit 9814ac608c
2 changed files with 8 additions and 8 deletions

View File

@@ -16,10 +16,12 @@ define(["dojo/_base/declare"], function (declare) {
Article.openInNewWindow(id);
}
Article.setActive(id);
if (Article.getActive() != id) {
Article.setActive(id);
if (!App.getInitParam("cdm_expanded"))
Article.cdmScrollToId(id);
if (!App.getInitParam("cdm_expanded"))
Article.cdmScrollToId(id);
}
return in_body;
@@ -231,6 +233,9 @@ define(["dojo/_base/declare"], function (declare) {
if (reply) {
if (offset == 0)
Article.setActive(0);
is_cat = reply['headlines']['is_cat'];
feed_id = reply['headlines']['id'];
Feeds.last_search_query = reply['headlines']['search_query'];