From 0b8f3909fe4d6b687955e101f624208c07fac88f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Mar 2019 12:16:09 +0300 Subject: [PATCH] Headlines.click: fix another small issue with expanded mode --- js/Headlines.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/Headlines.js b/js/Headlines.js index f161a6bea..4487f5bea 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -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); } }