]> git.wh0rd.org - tt-rss.git/commitdiff
hlClicked: allow opening originating article directly while middle-clicking on the...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 30 Mar 2011 12:39:27 +0000 (16:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 30 Mar 2011 12:39:27 +0000 (16:39 +0400)
functions.php
viewfeed.js

index f652cfe39037b9727db5dcc0084f7c8b6f15444d..d33b30454d3aa797161b7337770605058dfff4bc 100644 (file)
                                                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')) {
index 0e11a608092e85c01b226634b66d43f2cd829435..6b8356eb919217d61f948b9f8c44856cdf4472d0 100644 (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);