]> git.wh0rd.org Git - tt-rss.git/commitdiff
move href handlers to onclick for feedlist
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 3 Oct 2006 01:28:38 +0000 (02:28 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 3 Oct 2006 01:28:38 +0000 (02:28 +0100)
functions.php

index 3eaa5925b6913d25b05aabd1eaf574f095e7c18c..8b13bed987983f7d893f66d648744db09ab8a832 100644 (file)
                        $link_title = "Updated: $last_updated";
                }
 
-               $feed = "<a title=\"$link_title\" id=\"FEEDL-$feed_id\" href=\"javascript:viewfeed('$feed_id', '', false);\">$feed_title</a>";
+               $feed = "<a title=\"$link_title\" id=\"FEEDL-$feed_id\" 
+                       href=\"#\" onclick=\"javascript:viewfeed('$feed_id', '', false);\">$feed_title</a>";
 
                print "<li id=\"FEEDR-$feed_id\" class=\"$class\">";
                if (get_pref($link, 'ENABLE_FEED_ICONS')) {
                                        $cat_unread = getCategoryUnread($link, $cat_id);
                                        
                                        print "<li class=\"feedCat\" id=\"FCAT-$cat_id\">
-                                               <a id=\"FCATN-$cat_id\" href=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category</a>
-                                                       <a href=\"javascript:viewCategory($cat_id)\" id=\"FCAP-$cat_id\">
+                                               <a id=\"FCATN-$cat_id\" href=\"#\" onclick=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category</a>
+                                                       <a href=\"#\" onclick=\"javascript:viewCategory($cat_id)\" id=\"FCAP-$cat_id\">
                                                        <span id=\"FCATCTR-$cat_id\" 
                                                        class=\"$catctr_class\">($cat_unread unread)$ellipsis</span>
                                                        </a></li>";