hlClicked: allow opening originating article directly while middle-clicking on the headline title

This commit is contained in:
Andrew Dolgov 2011-03-30 16:39:27 +04:00
parent add81ec7a7
commit ccdddcc251
2 changed files with 6 additions and 3 deletions

View File

@ -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')) {

View File

@ -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);