mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 14:15:56 +00:00
rework pref-feeds dialog; update other pref panes
This commit is contained in:
22
backend.php
22
backend.php
@@ -161,9 +161,8 @@
|
||||
break; // rpc
|
||||
|
||||
case "feeds":
|
||||
$print_exec_time = true;
|
||||
|
||||
$subop = $_REQUEST["subop"];
|
||||
$root = (bool)$_REQUEST["root"];
|
||||
|
||||
switch($subop) {
|
||||
case "catchupAll":
|
||||
@@ -206,7 +205,24 @@
|
||||
|
||||
}
|
||||
|
||||
print json_encode(outputFeedList($link));
|
||||
if (!$root) {
|
||||
print json_encode(outputFeedList($link));
|
||||
} else {
|
||||
|
||||
$feeds = outputFeedList($link, false);
|
||||
|
||||
$root = array();
|
||||
$root['id'] = 'root';
|
||||
$root['name'] = __('Feeds');
|
||||
$root['items'] = $feeds['items'];
|
||||
|
||||
$fl = array();
|
||||
$fl['identifier'] = 'id';
|
||||
$fl['label'] = 'name';
|
||||
$fl['items'] = array($root);
|
||||
|
||||
print json_encode($fl);
|
||||
}
|
||||
|
||||
break; // feeds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user