]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline CDM generator: show feed icons
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 14:27:29 +0000 (17:27 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 14:27:29 +0000 (17:27 +0300)
offline.js

index 947a528b0198dc5ef2df59504241de9deb418769..53a005b83753f16da962bfdf2b1f2e035dbfacaa 100644 (file)
@@ -283,9 +283,10 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
                                        tmp += "</a>";
        
                                        tmp += "</td>";
-               
+
                                        tmp += "<td class=\"hlUpdated\" onclick='view("+id+","+feed_id+")'>"+
-                                               "<nobr>"+rs.fieldByName("updated").substring(0,16)+"</nobr></td>";
+                                               "<nobr>"+rs.fieldByName("updated").substring(0,16)+
+                                               "</nobr></td>";
        
                                        tmp += "</tr>";
                                } else {
@@ -299,9 +300,15 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
                                        tmp += "<div class=\"cdmArticle"+add_class+"\" id=\"RROW-"+id+"\" "+
                                                mouseover_attrs+"'>";
 
+                                       feed_icon_img = "<img class=\"tinyFeedIcon\" src=\""+
+                                               getInitParam("icons_url")+"/"+feed_id+".ico\" alt=\"\">";
+                                       cdm_feed_icon = "<span style=\"cursor : pointer\" "+
+                                               "onclick=\"viewfeed("+feed_id+")\">"+feed_icon_img+"</span>";
+
                                        tmp += "<div class=\"cdmHeader\">";
                                        tmp += "<div class=\"articleUpdated\">"+
-                                               rs.fieldByName("updated").substring(0,16)+"</div>";
+                                               rs.fieldByName("updated").substring(0,16)+
+                                               " "+cdm_feed_icon+"</div>";
 
                                        tmp += "<span id=\"RTITLE-"+id+"\" class=\"titleWrap\">"+
                                                "<a class=\"title\" onclick=\"javascript:toggleUnread("+id+", 0)\""+