1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 19:51:28 +00:00

code cleanup

This commit is contained in:
Andrew Dolgov
2010-02-03 16:35:16 +03:00
parent d002edc715
commit f2a648e1b2
3 changed files with 36 additions and 105 deletions

View File

@@ -30,40 +30,6 @@ function viewCategory(cat) {
return false;
}
function printFeedEntry(id, title, row_class, unread, icon) {
var tmp = "";
var fctr_class = "";
var feed_icon = "";
if (unread > 0) {
row_class += "Unread";
fctr_class = "feedCtrHasUnread";
} else {
fctr_class = "feedCtrNoUnread";
}
if (icon) {
feed_icon = "<img id='FIMG-"+id+"' src='" + icon + "'>";
} else {
feed_icon = "<img id='FIMG-"+id+"' src='images/blank_icon.gif'>";
}
var link = "<a title=\"FIXME\" id=\"FEEDL-"+id+"\""+
"href=\"javascript:viewfeed('"+id+"', '', false, '', false, 0);\">"+
title + "</a>";
tmp += "<li id='FEEDR-"+id+"' class="+row_class+">" + feed_icon +
"<span id=\"FEEDN-"+id+"\">" + link + "</span>";
tmp += " <span class='"+fctr_class+"' id=\"FEEDCTR-"+id+"\">" +
"(<span id=\"FEEDU-"+id+"\">"+unread+"</span>)</span>";
tmp += "</li>";
return tmp;
}
function render_feedlist(data) {
try {
@@ -429,9 +395,6 @@ function feedlist_dragsorted(ctr) {
function feedlist_init() {
try {
// if (arguments.callee.done) return;
// arguments.callee.done = true;
loading_set_progress(90);
debug("in feedlist init");