comparison app/view/grid/Messung.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 6742ae5f35dc
children ad24af3fcf89
comparison
equal deleted inserted replaced
683:612f4f933083 684:69cb367c0a63
193 value = sstore.last().get('status'); 193 value = sstore.last().get('status');
194 } 194 }
195 if (Ext.fly(opts.divId)) { 195 if (Ext.fly(opts.divId)) {
196 Ext.fly(opts.divId).update(value); 196 Ext.fly(opts.divId).update(value);
197 } 197 }
198 },
199
200 setReadOnly: function(b) {
201 if (b == true){
202 //Readonly
203 if (this.getPlugin('rowedit')){
204 this.getPlugin('rowedit').disable();
205 }
206 this.down('button[action=delete]').disable();
207 this.down('button[action=add]').disable();
208 }else{
209 //Writable
210 if (this.getPlugin('rowedit')){
211 this.getPlugin('rowedit').enable();
212 }
213 this.down('button[action=delete]').enable();
214 this.down('button[action=add]').enable();
215 }
198 } 216 }
199 }); 217 });

http://lada.wald.intevation.org