summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-03-07 12:16:50 +0300
committerAndrew Dolgov <[email protected]>2019-03-07 12:16:50 +0300
commitae9ef7fe84b905b977c98cc5108a570d6a638e62 (patch)
tree17493f4bd73c12a8a2177d8a69a7b1fbcefc00b8 /js
parent0b8f3909fe4d6b687955e101f624208c07fac88f (diff)
Headlines.click: fix another small issue with expanded mode (2)
Diffstat (limited to 'js')
-rwxr-xr-xjs/Headlines.js6
1 files 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);