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

master
Andrew Dolgov 14 years ago
parent add81ec7a7
commit ccdddcc251

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

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

Loading…
Cancel
Save