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