Fixed form names, params.headerText/params.HeaderText and params.message/params.Message.

This commit is contained in:
Martin Edenhofer 2013-06-17 14:56:28 +02:00
parent 60d3b513e6
commit 69fec9e219

View file

@ -1,13 +1,13 @@
class App.Maintenance extends App.ControllerContent
events:
'submit form': 'sendMessage'
constructor: ->
super
# render page
@render()
render: ->
@html App.view('maintenance')()
sendMessage: (e) ->
@ -18,9 +18,11 @@ class App.Maintenance extends App.ControllerContent
action: 'broadcast'
event: 'session:maintenance'
spool: false
data: {title: params.headerText, message: params.message}
data:
title: params.HeaderText
message: params.Message
)
App.Config.set( 'maintenance', App.Maintenance, 'Routes' )
App.Config.set( 'maintenance', { prio: 3600, parent: '#admin', name: 'Maintenance Message', target: '#maintenance', role: ['Admin'] }, 'NavBar' )
App.Config.set( 'maintenance', { prio: 3600, parent: '#admin', name: 'Maintenance Message', target: '#maintenance', role: ['Admin'] }, 'NavBar' )