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 {
}
enableHotkeys();
-
+ hideAuxDlg();
closeInfoBox();
Form.enable("main_toolbar_form");
toolbar_form.query.value = "";
}
- var query = "backend.php?op=viewfeed&feed=" + feed + "&" +
+ var query = "?op=viewfeed&feed=" + feed + "&" +
toolbar_query + "&subop=" + param_escape(subop);
if ($("search_form")) {
}
}
- var date = new Date();
- var timestamp = Math.round(date.getTime() / 1000);
- query = query + "&ts=" + timestamp
-
- disableContainerChildren("headlinesToolbar", false);
Form.enable("main_toolbar_form");
// for piggybacked counters
if (!img.src.match("indicator_white")) {
img.alt = img.src;
- img.src = 'images/indicator_white.gif';
+ img.src = getInitParam("sign_progress");
}
} else {
if (!$('FLL-' + feed)) {
var ll = document.createElement('img');
- ll.src = 'images/indicator_tiny.gif';
+ ll.src = getInitParam("sign_progress_tiny");
ll.className = 'hlLoading';
ll.id = 'FLL-' + feed;
}
}
- new Ajax.Request(query, {
+ new Ajax.Request("backend.php", {
+ parameters: query,
onComplete: function(transport) {
headlines_callback2(transport, page_offset);
} });
var cat_list = $("FCATLIST-" + cat).parentNode;
var caption = $("FCAP-" + cat);
-/* if (cat_list.className.match("invisible")) {
- cat_list.className = "";
- caption.innerHTML = caption.innerHTML.replace("...", "");
- if (cat == 0) {
- setCookie("ttrss_vf_uclps", "0");
- }
- } else {
- cat_list.className = "invisible";
- caption.innerHTML = caption.innerHTML + "...";
- if (cat == 0) {
- setCookie("ttrss_vf_uclps", "1");
- }
-
- } */
-
- if (cat == 0) {
- if (Element.visible("FCATLIST-" + cat)) {
- setCookie("ttrss_vf_uclps", "1");
- } else {
- setCookie("ttrss_vf_uclps", "0");
- }
- }
-
- if (cat == -2) {
- if (Element.visible("FCATLIST-" + cat)) {
- setCookie("ttrss_vf_lclps", "1");
- } else {
- setCookie("ttrss_vf_lclps", "0");
- }
- }
-
- if (cat == -1) {
- if (Element.visible("FCATLIST-" + cat)) {
- setCookie("ttrss_vf_vclps", "1");
- } else {
- setCookie("ttrss_vf_vclps", "0");
- }
- }
-
Effect.toggle('FCATLIST-' + cat, 'blind', { duration: 0.5,
afterFinish: toggleCollapseCat_af });
- new Ajax.Request("backend.php?op=feeds&subop=collapse&cid=" +
- param_escape(cat));
+ new Ajax.Request("backend.php",
+ { parameters: "backend.php?op=feeds&subop=collapse&cid=" +
+ param_escape(cat) } );
local_collapse_cat(cat);
if (ordered_cats.length > 0) {
- var query = "backend.php?op=feeds&subop=catsort&corder=" +
+ var query = "?op=feeds&subop=catsort&corder=" +
param_escape(ordered_cats.toString());
debug(query);
- new Ajax.Request(query);
+ new Ajax.Request("backend.php", { parameters: query });
}
} catch (e) {
function feedlist_init() {
try {
-// if (arguments.callee.done) return;
-// arguments.callee.done = true;
-
loading_set_progress(90);
debug("in feedlist init");
}
}
- if (getInitParam("theme") == "") {
+ if (getInitParam("theme") == "" ||
+ getInitParam("theme_options").match("hide_footer")) {
setTimeout("hide_footer()", 5000);
}
}
}
-/*
-function init_hidden_feedlist(theme) {
- try {
- debug("init_hidden_feedlist");
-
- if (theme != "" && theme != "compact") return;
-
- var fl = $("feeds-holder");
- var fh = $("headlines-frame");
- var fc = $("content-frame");
- var ft = $("toolbar");
- var ff = $("footer");
- var fhdr = $("header");
-
- var fbtn = $("toggle_feeds_btn");
-
- if (fbtn) Element.show(fbtn);
-
- fl.style.top = fh.offsetTop + "px";
- fl.style.backgroundColor = "white"; //FIXME
-
- Element.hide(fl);
-
- fh.style.left = "0px";
- ft.style.left = "0px";
- if (fc) fc.style.left = "0px";
- if (ff) ff.style.left = "0px";
-
- if (theme == "compact") {
- fhdr.style.left = "10px";
- fl.style.top = (fh.offsetTop + 1) + "px";
- }
-
- } catch (e) {
- exception_error("init_hidden_feedlist", e);
- }
-} */
-
-function init_collapsable_feedlist(theme) {
+function init_collapsable_feedlist() {
try {
debug("init_collapsable_feedlist");
- if (theme != "" && theme != "compact" && theme != "graycube" &&
- theme != "compat") return;
+ var theme = getInitParam("theme");
+ var options = getInitParam("theme_options");
+
+ if (theme != "" && !options.match("collapse_feedlist")) return;
var fbtn = $("collapse_feeds_btn");
if (fbtn) Element.show(fbtn);
- if (getCookie("ttrss_vf_fclps") == 1) {
+ if (getInitParam("collapsed_feedlist") == 1) {
collapse_feedlist();
}
debug("requesting counters...");
- var query = "backend.php?op=rpc&subop=getAllCounters";
+ var query = "?op=rpc&subop=getAllCounters";
if (tagsAreDisplayed()) {
query = query + "&omode=tl";
query = query + "&omode=flc";
}
- new Ajax.Request(query, {
+ new Ajax.Request("backend.php", {
+ parameters: query,
onComplete: function(transport) {
try {
all_counters_callback2(transport, true);