comparison app/controller/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 2e478b3a587a
children c2a6f7caa71b
comparison
equal deleted inserted replaced
714:a8da0a5bacf9 715:605bc34b45a0
102 form.owner.up('window').disableChildren(); 102 form.owner.up('window').disableChildren();
103 } 103 }
104 else { 104 else {
105 form.owner.down('button[action=save]').setDisabled(true); 105 form.owner.down('button[action=save]').setDisabled(true);
106 form.owner.down('button[action=discard]').setDisabled(true); 106 form.owner.down('button[action=discard]').setDisabled(true);
107 form.owner.up('window').enableChildren(); 107 //Only enable children if the form was not readOnly
108 if (!form.getRecord().get('readonly')) {
109 form.owner.up('window').enableChildren();
110 }
108 } 111 }
109 } 112 }
110 }); 113 });

http://lada.wald.intevation.org