Headlines.click: fix another small issue with expanded mode

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

View File

@ -169,9 +169,11 @@ define(["dojo/_base/declare"], function (declare) {
if (App.isCombinedMode()) {
if (Article.getActive() != id) {
Headlines.select('none');
Article.setActive(id);
if (App.getInitParam("cdm_expanded")) {
if (App.getInitParam("cdm_expanded") && !in_body) {
Article.openInNewWindow(id);
Headlines.toggleUnread(id, 0);
} else {
@ -186,6 +188,7 @@ define(["dojo/_base/declare"], function (declare) {
return in_body;
} else {
Headlines.select('none');
Article.view(id);
}
}