save feedlist collapse state
This commit is contained in:
parent
4752b0412a
commit
22936abb76
|
@ -423,6 +423,10 @@ function init_collapsable_feedlist() {
|
||||||
|
|
||||||
if (fbtn) Element.show(fbtn);
|
if (fbtn) Element.show(fbtn);
|
||||||
|
|
||||||
|
if (getCookie("ttrss_vf_fclps") == 1) {
|
||||||
|
collapse_feedlist();
|
||||||
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("init_hidden_feedlist", e);
|
exception_error("init_hidden_feedlist", e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -781,6 +781,8 @@ function collapse_feedlist() {
|
||||||
if (fc) fc.style.left = fl.offsetWidth + "px";
|
if (fc) fc.style.left = fl.offsetWidth + "px";
|
||||||
if (ff) ff.style.left = (fl.offsetWidth-1) + "px";
|
if (ff) ff.style.left = (fl.offsetWidth-1) + "px";
|
||||||
|
|
||||||
|
setCookie("ttrss_vf_fclps", "0");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Element.hide(fl);
|
Element.hide(fl);
|
||||||
fbtn.value = ">>";
|
fbtn.value = ">>";
|
||||||
|
@ -789,6 +791,8 @@ function collapse_feedlist() {
|
||||||
ft.style.left = "0px";
|
ft.style.left = "0px";
|
||||||
if (fc) fc.style.left = "0px";
|
if (fc) fc.style.left = "0px";
|
||||||
if (ff) ff.style.left = "0px";
|
if (ff) ff.style.left = "0px";
|
||||||
|
|
||||||
|
setCookie("ttrss_vf_fclps", "1");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error(e, "toggle_feedlist");
|
exception_error(e, "toggle_feedlist");
|
||||||
|
|
Loading…
Reference in New Issue