revert to previous headline ctrl-click behavior (open in new window, mark read)

This commit is contained in:
Andrew Dolgov 2018-12-05 10:37:05 +03:00
parent 2cd1ec5816
commit e42d25a361
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ define(["dojo/_base/declare"], function (declare) {
if (!in_body && (event.ctrlKey || id == Article.getActive() || App.getInitParam("cdm_expanded"))) {
Article.openInNewWindow(id);
Headlines.toggleUnread(id, 0);
return;
}
if (Article.getActive() != id) {
@ -28,7 +30,7 @@ define(["dojo/_base/declare"], function (declare) {
} else {
if (event.ctrlKey) {
Article.openInNewWindow(id);
Article.setActive(id);
Headlines.toggleUnread(id, 0);
} else {
Article.view(id);
}