From ccdddcc25139ee6fa7fdad395f111f6101b60a3a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Mar 2011 16:39:27 +0400 Subject: [PATCH] hlClicked: allow opening originating article directly while middle-clicking on the headline title --- functions.php | 2 +- viewfeed.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index f652cfe39..d33b30454 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 0e11a6080..6b8356eb9 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);