From 5687bd9b4bda97d8ff4b49bb970e689dc5158e41 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 27 Nov 2012 01:10:06 +0100 Subject: [PATCH] Fixed rss widget. --- .../javascripts/app/controllers/_dashboard/rss.js.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee index b3130f8dd..1099f1848 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee @@ -15,6 +15,7 @@ class App.DashboardRss extends App.Controller # get data from cache cache = App.Store.get( 'dashboard_rss' ) if cache + cache.head = 'Heise ATOM' @render( cache ) # init fetch via ajax, all other updates on time via websockets @@ -36,6 +37,7 @@ class App.DashboardRss extends App.Controller ) else App.Store.write( 'dashboard_rss', data ) + data.head = 'Heise ATOM' @render(data) error: => @render( @@ -47,6 +49,6 @@ class App.DashboardRss extends App.Controller render: (data) -> @html App.view('dashboard/rss')( head: data.head, - items: data.item || [] + items: data.items || [] message: data.message )