comparison app/view/form/Probe.js @ 684:69cb367c0a63

When a Probeform is dirty, all child-grids are made readonly (Row Editing is not disbled correctly). When a Probe is read-only all Child-grid buttons are disabled. When a Probe is ReadOnly probeform is also readonly.
author Dustin Demuth <dustin@intevation.de>
date Wed, 25 Mar 2015 15:04:45 +0100
parents f373446325b4
children 0391425689ed
comparison
equal deleted inserted replaced
683:612f4f933083 684:69cb367c0a63
33 border: 0, 33 border: 0,
34 34
35 recordId: null, 35 recordId: null,
36 36
37 trackResetOnLoad: true, 37 trackResetOnLoad: true,
38 readonly: false,
39 38
40 initComponent: function() { 39 initComponent: function() {
41 var me = this; 40 var me = this;
42 this.items = [{ 41 this.items = [{
43 xtype: 'fieldset', 42 xtype: 'fieldset',
286 }] 285 }]
287 }] 286 }]
288 }] 287 }]
289 }]; 288 }];
290 this.callParent(arguments); 289 this.callParent(arguments);
291
292 if (this.readonly){
293 this.setReadOnly(true);
294 }
295 }, 290 },
296 291
297 setRecord: function(record) { 292 setRecord: function(record) {
298 this.getForm().loadRecord(record); 293 this.getForm().loadRecord(record);
299 }, 294 },

http://lada.wald.intevation.org