]> git.wh0rd.org Git - tt-rss.git/commitdiff
hideOrShowFeedList: fix
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 11 May 2007 07:50:02 +0000 (08:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 11 May 2007 07:50:02 +0000 (08:50 +0100)
functions.js
tt-rss.js

index b26f75fd8a1ebd7d719d6ce952a4592d6c2e1705..cbc82a6a9069b43a6188ee5df67cf048d21a47de 100644 (file)
@@ -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) {
index eec1fe1ae8a658d2a763641822875d76f9fabeb3..6660a5d90c0bc82f6231acfab629fdda6fd3f885 100644 (file)
--- 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);
        }