cdmClicked: allow opening body URLs on click

This commit is contained in:
Andrew Dolgov 2018-12-01 16:47:51 +03:00
parent 78780c9c08
commit b5722956c7
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,7 @@ function viewfeed(params) {
if (feed != getActiveFeedId() || activeFeedIsCat() != is_cat) {
_search_query = false;
setActiveArticleId(0);
}
if (offset != 0) {

View File

@ -1100,6 +1100,7 @@ function updateHeadlineLabels(transport) {
}
function cdmClicked(event, id, in_body) {
in_body = in_body || false;
if (!in_body && (event.ctrlKey || id == getActiveArticleId() || getInitParam("cdm_expanded"))) {
openArticleInNewWindow(id);
@ -1166,7 +1167,7 @@ function cdmClicked(event, id, in_body) {
const unread_in_buffer = $$("#headlines-frame > div[id*=RROW][class*=Unread]").length
request_counters(unread_in_buffer == 0); */
return false;
return in_body;
}
function hlClicked(event, id) {