From 81fc666cd2cd460f35958a91e83da5b348c8d42b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 19 Sep 2013 23:26:03 +0200 Subject: [PATCH] Fixed loading assets. --- .../javascripts/app/controllers/navigation.js.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index 7d3bb6d7e..38d4a29bc 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -291,11 +291,8 @@ class App.Navigation extends App.Controller items = data.recent_viewed - # load user collection - App.Collection.load( type: 'User', data: data.users ) - - # load ticket collection - App.Collection.load( type: 'Ticket', data: data.tickets ) + # load collections + App.Event.trigger 'loadAssets', data.assets # remove old views NavBarRight = @Config.get( 'NavBarRight' ) || {}