mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:05:55 +00:00
Headlines.click: open original article when it makes sense to do so
This commit is contained in:
@@ -171,11 +171,17 @@ define(["dojo/_base/declare"], function (declare) {
|
||||
if (Article.getActive() != id) {
|
||||
Article.setActive(id);
|
||||
|
||||
if (!App.getInitParam("cdm_expanded"))
|
||||
if (App.getInitParam("cdm_expanded")) {
|
||||
Article.openInNewWindow(id);
|
||||
Headlines.toggleUnread(id, 0);
|
||||
} else {
|
||||
Article.cdmScrollToId(id);
|
||||
}
|
||||
|
||||
} else if (in_body) {
|
||||
Headlines.toggleUnread(id, 0);
|
||||
} else {
|
||||
Article.openInNewWindow(id);
|
||||
}
|
||||
|
||||
return in_body;
|
||||
|
||||
Reference in New Issue
Block a user