From 4f2cb55a56fc0d6520403dffaf286b754da7b31a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 20 Nov 2015 17:11:06 +0100 Subject: [PATCH] Fixed update() of App.UpdateTastbar class. --- .../app/controllers/_application_controller.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.coffee b/app/assets/javascripts/app/controllers/_application_controller.coffee index 8f5a3b792..484231493 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.coffee @@ -730,13 +730,13 @@ class App.UpdateHeader extends App.Controller super # subscribe and reload data / fetch new data if triggered - @subscribeId = @genericObject.subscribe( @render ) + @subscribeId = @genericObject.subscribe(@render) release: => App[ @genericObject.constructor.className ].unsubscribe(@subscribeId) render: (genericObject) => - @el.find( '.page-header h1' ).html( genericObject.displayName() ) + @el.find('.page-header h1').html(genericObject.displayName()) class App.UpdateTastbar extends App.Controller @@ -744,12 +744,12 @@ class App.UpdateTastbar extends App.Controller super # subscribe and reload data / fetch new data if triggered - @subscribeId = @genericObject.subscribe( @update ) + @subscribeId = @genericObject.subscribe(@update) release: => App[ @genericObject.constructor.className ].unsubscribe(@subscribeId) - update: (genericObject) -> + update: (genericObject) => # update taskbar with new meta data @metaTaskUpdate()