From e8bd0da9526712b6a2baa453133380608cd57af6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 May 2006 07:32:22 +0100 Subject: get rid of vf_hreadf cookie, move data to init-param --- feedlist.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'feedlist.js') 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); -- cgit v1.2.3