From d46739142e5589ae18d1c8c995715763c27671be Mon Sep 17 00:00:00 2001 From: Johannes Nickel Date: Fri, 7 Jun 2013 16:58:43 +0200 Subject: [PATCH] transfer --- .../controllers/maintenance_widget.js.coffee | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/assets/javascripts/app/controllers/maintenance_widget.js.coffee diff --git a/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee b/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee new file mode 100644 index 000000000..16213578f --- /dev/null +++ b/app/assets/javascripts/app/controllers/maintenance_widget.js.coffee @@ -0,0 +1,25 @@ +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') + + +class Message extends App.ControllerModal + constructor: -> + super + @render() + + render: -> + @html App.view('modal')( + title: 'Maintanance Message', + message: @message + detail: @detail + close: @close + ) + @modalShow( + backdrop: false, + keyboard: false, + )