From: Andrew Dolgov Date: Wed, 20 Feb 2008 08:56:38 +0000 (+0100) Subject: save feedlist collapse state X-Git-Tag: 1.2.20~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=22936abb76a5e321f40fc04ebc186204fbb7fa36;p=tt-rss.git save feedlist collapse state --- diff --git a/feedlist.js b/feedlist.js index e94cf12a..486409ae 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); } diff --git a/tt-rss.js b/tt-rss.js index 882c6575..7951c52f 100644 --- 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");