1
0
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:
Andrew Dolgov
2010-11-17 21:13:41 +03:00
parent 556e5b46d8
commit 1985a5e0d7
7 changed files with 637 additions and 77 deletions

View File

@@ -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