]> git.wh0rd.org Git - tt-rss.git/commitdiff
save feedlist collapse state
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 20 Feb 2008 08:56:38 +0000 (09:56 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 20 Feb 2008 08:56:38 +0000 (09:56 +0100)
feedlist.js
tt-rss.js

index e94cf12af24e29f23f31a8887de36fd81e72d25c..486409ae913bfb3c52ca0102cdc478da9aead295 100644 (file)
@@ -423,6 +423,10 @@ function init_collapsable_feedlist() {
 
                if (fbtn) Element.show(fbtn);
 
+               if (getCookie("ttrss_vf_fclps") == 1) {
+                       collapse_feedlist();
+               }
+
        } catch (e) {
                exception_error("init_hidden_feedlist", e);
        }
index 882c65750ce5716b9e7c1993b805179be26674c7..7951c52f382f54bb5468146fdac1f89fbcc577cc 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -781,6 +781,8 @@ function collapse_feedlist() {
                        if (fc) fc.style.left = fl.offsetWidth + "px";
                        if (ff) ff.style.left = (fl.offsetWidth-1) + "px";
 
+                       setCookie("ttrss_vf_fclps", "0");
+
                } else {
                        Element.hide(fl);
                        fbtn.value = ">>";
@@ -789,6 +791,8 @@ function collapse_feedlist() {
                        ft.style.left = "0px";
                        if (fc) fc.style.left = "0px";
                        if (ff) ff.style.left = "0px";
+
+                       setCookie("ttrss_vf_fclps", "1");
                }
        } catch (e) {
                exception_error(e, "toggle_feedlist");