Fixed form names, params.headerText/params.HeaderText and params.message/params.Message.
This commit is contained in:
parent
60d3b513e6
commit
69fec9e219
1 changed files with 5 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
||||||
class App.Maintenance extends App.ControllerContent
|
class App.Maintenance extends App.ControllerContent
|
||||||
events:
|
events:
|
||||||
'submit form': 'sendMessage'
|
'submit form': 'sendMessage'
|
||||||
|
|
||||||
constructor: ->
|
constructor: ->
|
||||||
super
|
super
|
||||||
# render page
|
# render page
|
||||||
@render()
|
@render()
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
|
||||||
@html App.view('maintenance')()
|
@html App.view('maintenance')()
|
||||||
|
|
||||||
sendMessage: (e) ->
|
sendMessage: (e) ->
|
||||||
|
@ -18,9 +18,11 @@ class App.Maintenance extends App.ControllerContent
|
||||||
action: 'broadcast'
|
action: 'broadcast'
|
||||||
event: 'session:maintenance'
|
event: 'session:maintenance'
|
||||||
spool: false
|
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', 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' )
|
||||||
|
|
Loading…
Reference in a new issue