summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/feedlist.js b/feedlist.js
index bb3f3bf75..8f623920e 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -555,12 +555,14 @@ function init_hidden_feedlist(theme) {
}
} */
-function init_collapsable_feedlist(theme) {
+function init_collapsable_feedlist() {
try {
debug("init_collapsable_feedlist");
- if (theme != "" && theme != "compact" && theme != "graycube" &&
- theme != "compat") return;
+ var theme = getInitParam("theme");
+ var options = getInitParam("theme_options");
+
+ if (theme != "" && !options.match("collapse_feedlist")) return;
var fbtn = $("collapse_feeds_btn");