Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-07-01 10:17:09 +02:00
parent f5c65bced4
commit 553591c6d1

View file

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