comparison app/view/grid/Ort.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 339741bc6ebf
children 5ed0e6273888
comparison
equal deleted inserted replaced
683:612f4f933083 684:69cb367c0a63
116 }, 116 },
117 scope: this 117 scope: this
118 }); 118 });
119 }, 119 },
120 120
121 121 setReadOnly: function(b) {
122 setReadOnly: function() { 122 if (b == true){
123 this.getPlugin('rowedit').disable(); 123 //Readonly
124 this.down('button[action=add]').disable(); 124 if (this.getPlugin('rowedit')){
125 this.down('button[action=delete]').disable(); 125 this.getPlugin('rowedit').disable();
126 }
127 this.down('button[action=delete]').disable();
128 this.down('button[action=add]').disable();
129 }else{
130 //Writable
131 if (this.getPlugin('rowedit')){
132 this.getPlugin('rowedit').enable();
133 }
134 this.down('button[action=delete]').enable();
135 this.down('button[action=add]').enable();
136 }
126 } 137 }
127 }); 138 });

http://lada.wald.intevation.org