Mercurial > lada > lada-client
diff app/view/form/Messung.js @ 715:605bc34b45a0
Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 08 Apr 2015 15:28:25 +0200 |
parents | f204f30b824a |
children | 7f11b75e0188 |
line wrap: on
line diff
--- a/app/view/form/Messung.js Wed Apr 08 12:45:37 2015 +0200 +++ b/app/view/form/Messung.js Wed Apr 08 15:28:25 2015 +0200 @@ -172,5 +172,9 @@ this.down('datetime[name=messzeitpunkt]').setReadOnly(value); this.down('numberfield[name=messdauer]').setReadOnly(value); this.down('chkbox[name=geplant]').setReadOnly(value); + if (!this.getForm().getRecord().get('owner')) { + //Only set this Field to Readonly when the User is NOT the Owner of the Record. + this.down('chkbox[name=fertig]').setReadOnly(value); + } } });