vf_catchup_link: use onclick, instead of href

This commit is contained in:
Andrew Dolgov 2008-05-17 10:22:08 +01:00
parent 86deaa0eb9
commit 962d8ba4e1
1 changed files with 5 additions and 2 deletions

View File

@ -4934,8 +4934,9 @@
$cur_feed_title = $line["feed_title"]; $cur_feed_title = $line["feed_title"];
$vgroup_last_feed = $feed_id; $vgroup_last_feed = $feed_id;
$cur_feed_title = htmlspecialchars($cur_feed_title);
$vf_catchup_link = "(<a href='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\")'>mark as read</a>)"; $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
print "<tr class='feedTitle'><td colspan='7'>". print "<tr class='feedTitle'><td colspan='7'>".
"<a href=\"javascript:viewfeed($feed_id, '', false)\">". "<a href=\"javascript:viewfeed($feed_id, '', false)\">".
@ -5006,7 +5007,9 @@
$cur_feed_title = $line["feed_title"]; $cur_feed_title = $line["feed_title"];
$vgroup_last_feed = $feed_id; $vgroup_last_feed = $feed_id;
$vf_catchup_link = "(<a href='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\")'>mark as read</a>)"; $cur_feed_title = htmlspecialchars($cur_feed_title);
$vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
print "<div class='cdmFeedTitle'>". print "<div class='cdmFeedTitle'>".
"<a href=\"javascript:viewfeed($feed_id, '', false)\">". "<a href=\"javascript:viewfeed($feed_id, '', false)\">".