summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-20 10:09:51 +0100
committerAndrew Dolgov <[email protected]>2008-02-20 10:09:51 +0100
commitd6918e1df5d9c07eb238bb452c32c533b1e91446 (patch)
treec133032aad21984424834695f88a215ad3956fd0 /feedlist.js
parent58daed52b6494d81f5646e29edf2273f32e7ee9f (diff)
enable hidden feedlist for compact theme
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/feedlist.js b/feedlist.js
index 2e6e9e891..97206ea15 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -40,11 +40,10 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
cache_invalidate("F:" + feed);
}
- if (getInitParam("theme") == "" && getInitParam("hide_feedlist") == 1) {
- Element.hide("feeds-holder");
-// Effect.Fade('feeds-holder', {duration : 0.2,
-// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }});
-
+ if (getInitParam("theme") == "" || getInitParam("theme") == "compact") {
+ if (getInitParam("hide_feedlist") == 1) {
+ Element.hide("feeds-holder");
+ }
}
var force_nocache = false;
@@ -391,13 +390,15 @@ function init_hidden_feedlist(theme) {
try {
debug("init_hidden_feedlist");
- if (theme != "") return;
+ if (theme != "" && theme != "compact") return;
var fl = document.getElementById("feeds-holder");
var fh = document.getElementById("headlines-frame");
var fc = document.getElementById("content-frame");
var ft = document.getElementById("toolbar");
var ff = document.getElementById("footer");
+ var fhdr = document.getElementById("header");
+
var fbtn = document.getElementById("toggle_feeds_btn");
if (fbtn) Element.show(fbtn);
@@ -412,6 +413,11 @@ function init_hidden_feedlist(theme) {
if (fc) fc.style.left = "0px";
if (ff) ff.style.left = "0px";
+ if (theme == "compact") {
+ fhdr.style.left = "10px";
+ fl.style.top = (fh.offsetTop + 1) + "px";
+ }
+
} catch (e) {
exception_error("init_hidden_feedlist", e);
}