Also disable textarea's on form disable.

This commit is contained in:
Martin Edenhofer 2015-06-04 10:55:26 +02:00
parent 48bd07ad7d
commit 8576909975

View file

@ -2482,7 +2482,7 @@ class App.ControllerForm extends App.Controller
App.Log.debug 'ControllerForm', 'disable form...', lookupForm App.Log.debug 'ControllerForm', 'disable form...', lookupForm
# set forms to read only during communication with backend # set forms to read only during communication with backend
lookupForm.find('button, input, select').attr('readonly', true) lookupForm.find('button, input, select, textarea').attr('readonly', true)
# disable additionals submits # disable additionals submits
lookupForm.find('button.btn').attr('disabled', true) lookupForm.find('button.btn').attr('disabled', true)
@ -2499,7 +2499,7 @@ class App.ControllerForm extends App.Controller
App.Log.debug 'ControllerForm', 'enable form...', lookupForm App.Log.debug 'ControllerForm', 'enable form...', lookupForm
# enable fields again # enable fields again
lookupForm.find('button, input, select').attr('readonly', false) lookupForm.find('button, input, select, textarea').attr('readonly', false)
# enable submits again # enable submits again
lookupForm.find('button.btn').attr('disabled', false) lookupForm.find('button.btn').attr('disabled', false)