From: Andrew Dolgov Date: Fri, 11 May 2007 07:50:02 +0000 (+0100) Subject: hideOrShowFeedList: fix X-Git-Tag: schema_freeze_for_1.2.11~67 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5158ced917ce256f6c5adb9d06c69be79751e7e0;p=tt-rss.git hideOrShowFeedList: fix --- diff --git a/functions.js b/functions.js index b26f75fd..cbc82a6a 100644 --- a/functions.js +++ b/functions.js @@ -1525,6 +1525,7 @@ function getInitParam(key) { function storeInitParam(key, value) { debug("storeInitParam is OBSOLETE: " + key + " => " + value + ""); + init_params[key] = value; } function fatalError(code, message) { diff --git a/tt-rss.js b/tt-rss.js index eec1fe1a..6660a5d9 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -544,7 +544,7 @@ function toggleDispRead() { if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return - } + } var hide_read_feeds = (getInitParam("hide_read_feeds") == "1"); @@ -554,13 +554,13 @@ function toggleDispRead() { hideOrShowFeeds(getFeedsContext().document, hide_read_feeds); - var query = "backend.php?op=rpc&subop=setpref" + - "&key=HIDE_READ_FEEDS&value=" + param_escape(hide_read_feeds); - storeInitParam("hide_read_feeds", hide_read_feeds, true); - new Ajax.Request(query); - +/* var query = "backend.php?op=rpc&subop=setpref" + + "&key=HIDE_READ_FEEDS&value=" + param_escape(hide_read_feeds); + + new Ajax.Request(query); */ + } catch (e) { exception_error("toggleDispRead", e); }