From: Andrew Dolgov Date: Wed, 30 Mar 2011 12:39:27 +0000 (+0400) Subject: hlClicked: allow opening originating article directly while middle-clicking on the... X-Git-Tag: 1.5.3~90 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ccdddcc25139ee6fa7fdad395f111f6101b60a3a;p=tt-rss.git hlClicked: allow opening originating article directly while middle-clicking on the headline title --- diff --git a/functions.php b/functions.php index f652cfe3..d33b3045 100644 --- a/functions.php +++ b/functions.php @@ -5042,7 +5042,7 @@ class=\"hlTitle\">"; $reply['content'] .= "" . + onclick=\"\">" . $line["title"]; if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) { diff --git a/viewfeed.js b/viewfeed.js index 0e11a608..6b8356eb 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1902,11 +1902,14 @@ function postOpenInNewTab(event, id) { function hlClicked(event, id) { try { - if (event.altKey) { + if (event.which == 2) { + view(id); + return true; + } else if (event.altKey) { openArticleInNewWindow(id); } else if (!event.ctrlKey) { view(id); - return true; + return false; } else { toggleSelected(id); toggleUnread(id, 0, false);