offline: disable categories in feedlist when not enabled in tt-rss main

master
Andrew Dolgov 16 years ago
parent ab95d6a545
commit 1c98068144

@ -2958,6 +2958,9 @@
print "<param key=\"hide_read_feeds\" value=\"" .
(int) get_pref($link, "HIDE_READ_FEEDS") . "\"/>";
print "<param key=\"enable_feed_cats\" value=\"" .
(int) get_pref($link, "ENABLE_FEED_CATS") . "\"/>";
print "<param key=\"feeds_sort_by_unread\" value=\"" .
(int) get_pref($link, "FEEDS_SORT_BY_UNREAD") . "\"/>";

@ -412,7 +412,7 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
function render_offline_feedlist() {
try {
var cats_enabled = 1;
var cats_enabled = getInitParam("enable_feed_cats") == "1";
var tmp = "<ul class=\"feedList\" id=\"feedList\">";

Loading…
Cancel
Save