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 {
function feedlist_init() {
try {
-// if (arguments.callee.done) return;
-// arguments.callee.done = true;
-
loading_set_progress(90);
debug("in feedlist init");
exception_error("offlineConfirmModeChange", e);
}
}
+
+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;
+}
+
+
if (!cached_article) {
-// notify_progress("Loading, please wait...", true);
-
-/* var content = $('HLC-' + id);
-
- if (content && !$('LL-' + id)) {
- var ll = document.createElement('img');
-
- ll.src = 'images/indicator_tiny.gif';
- ll.className = 'hlLoading';
- ll.id = 'LL-' + id;
-
- content.appendChild(ll);
-
- } */
-
var upic = $('FUPDPIC-' + id);
if (upic) {
}
} else {
- //mark_img.src = "images/mark_unset.png";
mark_img.alt = __("Please wait...");
query = query + "&mark=0";
query = query + "&pub=1";
} else {
- //mark_img.src = "images/pub_unset.png";
mark_img.alt = __("Please wait...");
query = query + "&pub=0";
query = query + "&afid=" + getActiveFeedId();
-/* if (tagsAreDisplayed()) {
- query = query + "&omode=tl";
- } else {
- query = query + "&omode=flc";
- } */
-
query = query + "&omode=lc";
new Ajax.Request("backend.php", {
query = query + "&afid=" + getActiveFeedId();
-/* if (tagsAreDisplayed()) {
- query = query + "&omode=tl";
- } else {
- query = query + "&omode=flc";
- } */
-
query = query + "&omode=lc";
new Ajax.Request("backend.php", {
if ($("headlinesList")) {
selectionToggleUnread(false, false, 'viewCurrentFeed()', true);
- // selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
} else {
selectionToggleUnread(true, false, 'viewCurrentFeed()', true)
- // cdmSelectArticles('none');
}
} catch (e) {
}
}
-function showOriginalArticleInline(id) {
- try {
-
- var query = "?op=rpc&subop=getArticleLink&id=" + id;
-
- notify_progress("Loading, please wait...", true);
-
- new Ajax.Request("backend.php", {
- parameters: query,
- onComplete: function(transport) {
-
- if (transport.responseXML) {
-
- var link = transport.responseXML.getElementsByTagName("link")[0];
- var id = transport.responseXML.getElementsByTagName("id")[0];
-
- notify("");
-
- if (link && id) {
- link = link.firstChild.nodeValue;
-
- var ci = $("content-insert");
-
- var tmp = "<iframe id=\"inline_orig_article\" width=\""+ci.offsetWidth+"\" height=\""+ci.offsetHeight+"\" style=\"border-width : 0px;\" src=\""+link+"\"></iframe>";
-
- render_article(tmp);
-
- }
- }
- } });
-
- } catch (e) {
- exception_error("showOriginalArticleInline", e);
- }
-}
-
-
function scrollArticle(offset) {
try {
if (!isCdmMode()) {