From a7986fdbc156afca526ec21d87406fbb70bf795f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 7 Jun 2013 17:01:46 +0200 Subject: [PATCH] Added missing widget registration. --- .../javascripts/app/controllers/maintenance_widget.js.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee b/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee index 16213578f..206f463d3 100644 --- a/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee @@ -1,7 +1,7 @@ class App.MaintananceWidget extends App.Controller constructor: -> super - + # bind on event to show message App.Event.bind 'session:maintanance', (data) => console.log('hannes was here') @@ -23,3 +23,5 @@ class Message extends App.ControllerModal backdrop: false, keyboard: false, ) + +App.Config.set( 'maintanance', App.MaintananceWidget, 'Widgets' )