mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:26:00 +00:00
enable collapsing feedlist for compact theme
This commit is contained in:
18
feedlist.js
18
feedlist.js
@@ -345,12 +345,12 @@ function feedlist_init() {
|
||||
|
||||
if (getInitParam("theme") == "") {
|
||||
setTimeout("hide_footer()", 5000);
|
||||
}
|
||||
|
||||
if (getInitParam("hide_feedlist") == 1) {
|
||||
init_hidden_feedlist();
|
||||
} else {
|
||||
init_collapsable_feedlist();
|
||||
}
|
||||
if (getInitParam("hide_feedlist") == 1) {
|
||||
init_hidden_feedlist(getInitParam("theme"));
|
||||
} else {
|
||||
init_collapsable_feedlist(getInitParam("theme"));
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
@@ -387,10 +387,12 @@ function hide_footer() {
|
||||
}
|
||||
}
|
||||
|
||||
function init_hidden_feedlist() {
|
||||
function init_hidden_feedlist(theme) {
|
||||
try {
|
||||
debug("init_hidden_feedlist");
|
||||
|
||||
if (theme != "") return;
|
||||
|
||||
var fl = document.getElementById("feeds-holder");
|
||||
var fh = document.getElementById("headlines-frame");
|
||||
var fc = document.getElementById("content-frame");
|
||||
@@ -415,10 +417,12 @@ function init_hidden_feedlist() {
|
||||
}
|
||||
}
|
||||
|
||||
function init_collapsable_feedlist() {
|
||||
function init_collapsable_feedlist(theme) {
|
||||
try {
|
||||
debug("init_collapsable_feedlist");
|
||||
|
||||
if (theme != "" && theme != "compact") return;
|
||||
|
||||
var fbtn = document.getElementById("collapse_feeds_btn");
|
||||
|
||||
if (fbtn) Element.show(fbtn);
|
||||
|
||||
Reference in New Issue
Block a user