mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-01 10:39:15 +00:00
offline: disable categories in feedlist when not enabled in tt-rss main
This commit is contained in:
@@ -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\">";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user