enable collapsed feedlist for graycube
This commit is contained in:
parent
d6918e1df5
commit
f0e8468b41
|
@ -427,7 +427,7 @@ function init_collapsable_feedlist(theme) {
|
||||||
try {
|
try {
|
||||||
debug("init_collapsable_feedlist");
|
debug("init_collapsable_feedlist");
|
||||||
|
|
||||||
if (theme != "" && theme != "compact") return;
|
if (theme != "" && theme != "compact" && theme != "graycube") return;
|
||||||
|
|
||||||
var fbtn = document.getElementById("collapse_feeds_btn");
|
var fbtn = document.getElementById("collapse_feeds_btn");
|
||||||
|
|
||||||
|
|
38
tt-rss.js
38
tt-rss.js
|
@ -766,7 +766,7 @@ function collapse_feedlist() {
|
||||||
debug("toggle_feedlist");
|
debug("toggle_feedlist");
|
||||||
|
|
||||||
var theme = getInitParam("theme");
|
var theme = getInitParam("theme");
|
||||||
if (theme != "" && theme != "compact") return;
|
if (theme != "" && theme != "compact" && theme != "graycube") return;
|
||||||
|
|
||||||
var fl = document.getElementById("feeds-holder");
|
var fl = document.getElementById("feeds-holder");
|
||||||
var fh = document.getElementById("headlines-frame");
|
var fh = document.getElementById("headlines-frame");
|
||||||
|
@ -780,12 +780,19 @@ function collapse_feedlist() {
|
||||||
Element.show(fl);
|
Element.show(fl);
|
||||||
fbtn.value = "<<";
|
fbtn.value = "<<";
|
||||||
|
|
||||||
fh.style.left = fl.offsetWidth + "px";
|
if (theme != "graycube") {
|
||||||
ft.style.left = fl.offsetWidth + "px";
|
|
||||||
if (fc) fc.style.left = fl.offsetWidth + "px";
|
|
||||||
if (ff) ff.style.left = (fl.offsetWidth-1) + "px";
|
|
||||||
|
|
||||||
if (theme == "compact") fhdr.style.left = (fl.offsetWidth + 10) + "px";
|
fh.style.left = fl.offsetWidth + "px";
|
||||||
|
ft.style.left = fl.offsetWidth + "px";
|
||||||
|
if (fc) fc.style.left = fl.offsetWidth + "px";
|
||||||
|
if (ff) ff.style.left = (fl.offsetWidth-1) + "px";
|
||||||
|
|
||||||
|
if (theme == "compact") fhdr.style.left = (fl.offsetWidth + 10) + "px";
|
||||||
|
} else {
|
||||||
|
fh.style.left = fl.offsetWidth + 40 + "px";
|
||||||
|
ft.style.left = fl.offsetWidth + 40 +"px";
|
||||||
|
if (fc) fc.style.left = fl.offsetWidth + 40 + "px";
|
||||||
|
}
|
||||||
|
|
||||||
setCookie("ttrss_vf_fclps", "0");
|
setCookie("ttrss_vf_fclps", "0");
|
||||||
|
|
||||||
|
@ -793,12 +800,21 @@ function collapse_feedlist() {
|
||||||
Element.hide(fl);
|
Element.hide(fl);
|
||||||
fbtn.value = ">>";
|
fbtn.value = ">>";
|
||||||
|
|
||||||
fh.style.left = "0px";
|
if (theme != "graycube") {
|
||||||
ft.style.left = "0px";
|
|
||||||
if (fc) fc.style.left = "0px";
|
|
||||||
if (ff) ff.style.left = "0px";
|
|
||||||
|
|
||||||
if (theme == "compact") fhdr.style.left = "10px";
|
fh.style.left = "0px";
|
||||||
|
ft.style.left = "0px";
|
||||||
|
if (fc) fc.style.left = "0px";
|
||||||
|
if (ff) ff.style.left = "0px";
|
||||||
|
|
||||||
|
if (theme == "compact") fhdr.style.left = "10px";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
fh.style.left = "20px";
|
||||||
|
ft.style.left = "20px";
|
||||||
|
if (fc) fc.style.left = "20px";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
setCookie("ttrss_vf_fclps", "1");
|
setCookie("ttrss_vf_fclps", "1");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue