diff options
author | Gregor Tätzner <gregor@freenet.de> | 2012-08-04 18:54:54 +0200 |
---|---|---|
committer | Gregor Tätzner <gregor@freenet.de> | 2012-08-04 18:54:54 +0200 |
commit | 82cfb232c2728eb7acbb0adbd12a84b6b46e4322 (patch) | |
tree | 7471e7dec607026e19972ffb358892fc2286a185 /ajax/createfeed.php | |
parent | 91d194a5df74ba79e40fb1be8f87d79a506d2c85 (diff) |
Show or hide items in rightcontent when creating or deleting feeds
Diffstat (limited to 'ajax/createfeed.php')
-rw-r--r-- | ajax/createfeed.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ajax/createfeed.php b/ajax/createfeed.php index 364679189..0b05f3ab4 100644 --- a/ajax/createfeed.php +++ b/ajax/createfeed.php @@ -44,9 +44,13 @@ if($feed == null || !$feedid) { exit(); } -$tmpl = new OCP\Template("news", "part.listfeed"); -$tmpl->assign('child', $feed); -$listfeed = $tmpl->fetchPage(); +$tmpl_listfeed = new OCP\Template("news", "part.listfeed"); +$tmpl_listfeed->assign('child', $feed); +$listfeed = $tmpl_listfeed->fetchPage(); -OCP\JSON::success(array('data' => array('message' => $l->t('Feed added!'), 'listfeed' => $listfeed))); +$tmpl_items = new OCP\Template("news", "part.items"); +$tmpl_items->assign('feedid', $feedid); +$part_items = $tmpl_items->fetchPage(); + +OCP\JSON::success(array('data' => array( 'message' => $l->t('Feed added!'), 'listfeed' => $listfeed, 'part_items' => $part_items ))); |