Improved error handling.
This commit is contained in:
parent
f5c65bced4
commit
553591c6d1
1 changed files with 4 additions and 3 deletions
|
@ -10,9 +10,10 @@ class App.ControllerForm extends App.Controller
|
|||
@el.prepend( @form )
|
||||
|
||||
# trigger change to rebuild shown/hidden item and update sub selections
|
||||
@form.find('input').trigger('change')
|
||||
@form.find('textarea').trigger('change')
|
||||
@form.find('select').trigger('change')
|
||||
if typeof @form is 'object'
|
||||
@form.find('input').trigger('change')
|
||||
@form.find('textarea').trigger('change')
|
||||
@form.find('select').trigger('change')
|
||||
|
||||
html: =>
|
||||
@form.html()
|
||||
|
|
Loading…
Reference in a new issue