diff options
author | Andrew Dolgov <[email protected]> | 2011-03-30 16:39:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-03-30 16:39:27 +0400 |
commit | ccdddcc25139ee6fa7fdad395f111f6101b60a3a (patch) | |
tree | c55445027cdc2717f6b9cec15bcf1c1372c5795c | |
parent | add81ec7a7557ca86298019b49280b7d93aea790 (diff) |
hlClicked: allow opening originating article directly while middle-clicking on the headline title
-rw-r--r-- | functions.php | 2 | ||||
-rw-r--r-- | 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\"><span class='hlContent$hlc_suffix'>"; $reply['content'] .= "<a id=\"RTITLE-$id\" href=\"" . htmlspecialchars($line["link"]) . "\" - onclick=\"return false;\">" . + 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); |