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,7 +18,9 @@ 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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue