comparison app/view/window/Messprogramm.js @ 1419:01f083db45b7

Use readonly flag to set edit status of UI
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 29 Mar 2017 14:27:20 +0200
parents 1a2cd9bef6d7
children
comparison
equal deleted inserted replaced
1418:3ecf993c250a 1419:01f083db45b7
145 145
146 // If a record was passed to this window, 146 // If a record was passed to this window,
147 // create a Edit window 147 // create a Edit window
148 if (this.record) { 148 if (this.record) {
149 this.setLoading(true); 149 this.setLoading(true);
150 this.down('messmethodengrid').setReadOnly(false);
151 Ext.ClassManager.get('Lada.model.Messprogramm').load(this.record.get('id'), { 150 Ext.ClassManager.get('Lada.model.Messprogramm').load(this.record.get('id'), {
152 failure: function(record, action) { 151 failure: function(record, action) {
153 me.setLoading(false); 152 me.setLoading(false);
154 // TODO 153 // TODO
155 console.log('An unhandled Failure occured. See following Response and Record'); 154 console.log('An unhandled Failure occured. See following Response and Record');
199 }, 198 },
200 */ 199 */
201 200
202 disableChildren: function() { 201 disableChildren: function() {
203 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(true); 202 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(true);
203 this.down('messmethodengrid').setReadOnly(true);
204 }, 204 },
205 205
206 enableChildren: function() { 206 enableChildren: function() {
207 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(false); 207 this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(false);
208 }, 208 },

http://lada.wald.intevation.org