Headlines.click: open original article (and mark as read) on alt click on title
This commit is contained in:
parent
b54c40c45b
commit
900cdbbb31
|
@ -168,7 +168,12 @@ define(["dojo/_base/declare"], function (declare) {
|
|||
} else {
|
||||
if (App.isCombinedMode()) {
|
||||
|
||||
if (Article.getActive() != id) {
|
||||
if (event.altKey && !in_body) {
|
||||
|
||||
Article.openInNewWindow(id);
|
||||
Headlines.toggleUnread(id, 0);
|
||||
|
||||
} else if (Article.getActive() != id) {
|
||||
|
||||
Headlines.select('none');
|
||||
Article.setActive(id);
|
||||
|
@ -184,16 +189,21 @@ define(["dojo/_base/declare"], function (declare) {
|
|||
|
||||
} else if (in_body) {
|
||||
Headlines.toggleUnread(id, 0);
|
||||
} else {
|
||||
} else { /* !in body */
|
||||
Article.openInNewWindow(id);
|
||||
}
|
||||
|
||||
return in_body;
|
||||
} else {
|
||||
if (event.altKey) {
|
||||
Article.openInNewWindow(id);
|
||||
Headlines.toggleUnread(id, 0);
|
||||
} else {
|
||||
Headlines.select('none');
|
||||
Article.view(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue