summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-11 00:19:15 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-11 00:19:15 +0200
commit5428fc01006eeae43249800f68e19107e4d3d870 (patch)
tree4824f8abb50d77932e5dd12da3151829814e056e /ajax
parentfb8f2c25502f4ad708cf85f239570f340a64c721 (diff)
fixed bug that would cause the itemheader to disappear when a different feed is loaded
Diffstat (limited to 'ajax')
-rw-r--r--ajax/loadfeed.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/ajax/loadfeed.php b/ajax/loadfeed.php
index 40c873e2b..992e65019 100644
--- a/ajax/loadfeed.php
+++ b/ajax/loadfeed.php
@@ -25,6 +25,11 @@ $tmpl_items = new OCP\Template("news", "part.items");
$tmpl_items->assign('feedid', $feedid);
$part_items = $tmpl_items->fetchPage();
+$tmpl_items_header = new OCP\Template("news", "part.items.header");
+$tmpl_items_header->assign('feedid', $feedid);
+$items_header = $tmpl_items_header->fetchPage();
+
OCP\JSON::success(array('data' => array( 'message' => $l->t('Feed loaded!'),
+ 'items_header' => $items_header,
'part_items' => $part_items )));