Added onSubmitCallback for modal controller.
This commit is contained in:
parent
4e15d2dfa2
commit
aad5855aa3
1 changed files with 2 additions and 0 deletions
|
@ -607,6 +607,8 @@ class App.ControllerModal extends App.Controller
|
|||
|
||||
onSubmit: (e) =>
|
||||
e.preventDefault()
|
||||
if @onSubmitCallback
|
||||
@onSubmitCallback()
|
||||
@log 'error', 'You need to implement your own "onSubmit" method!'
|
||||
|
||||
class App.ErrorModal extends App.ControllerModal
|
||||
|
|
Loading…
Reference in a new issue