Added onSubmitCallback for modal controller.

This commit is contained in:
Martin Edenhofer 2015-06-28 03:37:48 +02:00
parent 4e15d2dfa2
commit aad5855aa3

View file

@ -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