comparison app/view/form/Messung.js @ 985:abc2e9fe5069

Handle Fertig Flag like all other Attributes
author Dustin Demuth <dustin@intevation.de>
date Thu, 10 Dec 2015 09:28:26 +0100
parents a2c2039bb5d9
children c943340176d4
comparison
equal deleted inserted replaced
974:ea477f62a667 985:abc2e9fe5069
323 setReadOnly: function(value) { 323 setReadOnly: function(value) {
324 this.down('tfield[name=nebenprobenNr]').setReadOnly(value); 324 this.down('tfield[name=nebenprobenNr]').setReadOnly(value);
325 this.down('messmethode[name=mmtId]').setReadOnly(value); 325 this.down('messmethode[name=mmtId]').setReadOnly(value);
326 this.down('datetime[name=messzeitpunkt]').setReadOnly(value); 326 this.down('datetime[name=messzeitpunkt]').setReadOnly(value);
327 this.down('numberfield[name=messdauer]').setReadOnly(value); 327 this.down('numberfield[name=messdauer]').setReadOnly(value);
328 if (!this.getForm().getRecord().get('owner')) { 328 this.down('chkbox[name=fertig]').setReadOnly(value);
329 //Only set this Field to Readonly when the User is NOT the Owner of the Record.
330 this.down('chkbox[name=fertig]').setReadOnly(value);
331 }
332 } 329 }
333 }); 330 });

http://lada.wald.intevation.org