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 )
|
@el.prepend( @form )
|
||||||
|
|
||||||
# trigger change to rebuild shown/hidden item and update sub selections
|
# trigger change to rebuild shown/hidden item and update sub selections
|
||||||
@form.find('input').trigger('change')
|
if typeof @form is 'object'
|
||||||
@form.find('textarea').trigger('change')
|
@form.find('input').trigger('change')
|
||||||
@form.find('select').trigger('change')
|
@form.find('textarea').trigger('change')
|
||||||
|
@form.find('select').trigger('change')
|
||||||
|
|
||||||
html: =>
|
html: =>
|
||||||
@form.html()
|
@form.html()
|
||||||
|
|
Loading…
Reference in a new issue