diff options
-rw-r--r-- | functions.js | 1 | ||||
-rw-r--r-- | tt-rss.js | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/functions.js b/functions.js index b26f75fd8..cbc82a6a9 100644 --- a/functions.js +++ b/functions.js @@ -1525,6 +1525,7 @@ function getInitParam(key) { function storeInitParam(key, value) { debug("<b>storeInitParam is OBSOLETE: " + key + " => " + value + "</b>"); + init_params[key] = value; } function fatalError(code, message) { @@ -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); } |