]> git.wh0rd.org Git - tt-rss.git/commitdiff
use real link to article in headlines list (for middle click)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 21 May 2008 07:48:21 +0000 (08:48 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 21 May 2008 07:48:21 +0000 (08:48 +0100)
functions.php

index 087ba8a4e8d20fcd40ab75ea472e028e9ede080c..7c74fec350c1b9a6ab126778939885875eb1f931 100644 (file)
 #                              $content_link = "<a target=\"_new\" href=\"".$line["link"]."\">" .
 #                                      $line["title"] . "</a>";
 
-                               $content_link = "<a href=\"javascript:view($id,$feed_id);\">" .
-                                       $line["title"] . "</a>";
+#                              $content_link = "<a 
+#                                      href=\"" . htmlspecialchars($line["link"]) . "\"
+#                                      onclick=\"view($id,$feed_id);\">" .
+#                                      $line["title"] . "</a>";
 
 #                              $content_link = "<a href=\"javascript:viewContentUrl('".$line["link"]."');\">" .
 #                                      $line["title"] . "</a>";
 #                                                              truncate_string($line["feed_title"],30)."</a>&nbsp;</td>";
 #                                      } else {                        
 
-                                       print "<td onclick='javascript:view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle'>";
+                                       print "<td onclick='view($id,$feed_id)' class='hlContent$hlc_suffix' valign='middle'>";
 
-                                       print "<a id=\"RTITLE-$id\" href=\"javascript:view($id,$feed_id);\">" .
+                                       print "<a id=\"RTITLE-$id\" 
+                                               href=\"" . htmlspecialchars($line["link"]) . "\"
+                                               onclick=\"view($id,$feed_id);\">" .
                                                $line["title"];
 
                                        if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {