Headlines.click: fix another small issue with expanded mode (2)

This commit is contained in:
Andrew Dolgov 2019-03-07 12:16:50 +03:00
parent 0b8f3909fe
commit ae9ef7fe84
1 changed files with 4 additions and 2 deletions

View File

@ -173,8 +173,10 @@ define(["dojo/_base/declare"], function (declare) {
Headlines.select('none');
Article.setActive(id);
if (App.getInitParam("cdm_expanded") && !in_body) {
Article.openInNewWindow(id);
if (App.getInitParam("cdm_expanded")) {
if (!in_body)
Article.openInNewWindow(id);
Headlines.toggleUnread(id, 0);
} else {
Article.cdmScrollToId(id);