summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-23 07:32:22 +0100
committerAndrew Dolgov <[email protected]>2006-05-23 07:32:22 +0100
commite8bd0da9526712b6a2baa453133380608cd57af6 (patch)
tree9d3a658f58248049153c0f42e19d1390ed1f6cef /feedlist.js
parent33d13e72e28bf5fd1b8946c69ef05bd0f8ff9d0c (diff)
get rid of vf_hreadf cookie, move data to init-param
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/feedlist.js b/feedlist.js
index 6be3816c1..ae4c23225 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -189,10 +189,8 @@ function toggleCollapseCat(cat) {
}
}
- xmlhttp_rpc.open("GET", "backend.php?op=feeds&subop=collapse&cid=" +
- param_escape(cat), true);
- xmlhttp_rpc.onreadystatechange=rpc_pnotify_callback;
- xmlhttp_rpc.send(null);
+ new Ajax.Request("backend.php?op=feeds&subop=collapse&cid=" +
+ param_escape(cat));
} catch (e) {
exception_error("toggleCollapseCat", e);
@@ -206,7 +204,7 @@ function init() {
parent.debug("in feedlist init");
- hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
+ hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
document.onkeydown = hotkey_handler;
parent.setTimeout("timeout()", 0);