}
function getActiveFeedId() {
-// return getCookie("ttrss_vf_actfeed");
try {
debug("gAFID: " + _active_feed_id);
return _active_feed_id;
}
function setActiveFeedId(id, is_cat) {
-// return setCookie("ttrss_vf_actfeed", id);
try {
debug("sAFID(" + id + ", " + is_cat + ")");
_active_feed_id = id;
// if (!Ajax.getTransport()) fatalError(1);
- setCookie("ttrss_vf_test", "TEST");
+ setCookie("ttrss_test", "TEST");
- if (getCookie("ttrss_vf_test") != "TEST") {
+ if (getCookie("ttrss_test") != "TEST") {
fatalError(2);
}
try {
- delCookie("ttrss_vf_test");
+ delCookie("ttrss_test");
// document.onresize = resize_headlines;
window.onresize=resize_headlines;
if (fc) fc.style.left = fl.offsetWidth + 40 + "px";
}
- setCookie("ttrss_vf_fclps", "0");
+ query = "backend.php?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=false";
+
+ new Ajax.Request(query);
} else {
Element.hide(fl);
}
- setCookie("ttrss_vf_fclps", "1");
+ query = "backend.php?op=rpc&subop=setpref&key=_COLLAPSED_FEEDLIST&value=true";
+
+ new Ajax.Request(query);
+
}
} catch (e) {
exception_error("toggle_feedlist", e);