summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-20 10:17:54 +0100
committerAndrew Dolgov <[email protected]>2008-02-20 10:17:54 +0100
commitf0e8468b41b85c284b2e8b1a463f7e5c728f2529 (patch)
tree2e10c7d33e7d5bc3417f94f5a2a56b21b3916973 /tt-rss.js
parentd6918e1df5d9c07eb238bb452c32c533b1e91446 (diff)
enable collapsed feedlist for graycube
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js38
1 files changed, 27 insertions, 11 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 2dea19217..536f53482 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -766,7 +766,7 @@ function collapse_feedlist() {
debug("toggle_feedlist");
var theme = getInitParam("theme");
- if (theme != "" && theme != "compact") return;
+ if (theme != "" && theme != "compact" && theme != "graycube") return;
var fl = document.getElementById("feeds-holder");
var fh = document.getElementById("headlines-frame");
@@ -780,12 +780,19 @@ function collapse_feedlist() {
Element.show(fl);
fbtn.value = "<<";
- 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 != "graycube") {
- 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");
@@ -793,12 +800,21 @@ function collapse_feedlist() {
Element.hide(fl);
fbtn.value = ">>";
- fh.style.left = "0px";
- ft.style.left = "0px";
- if (fc) fc.style.left = "0px";
- if (ff) ff.style.left = "0px";
+ if (theme != "graycube") {
+
+ 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";
+ 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");
}