comparison app/view/grid/Probenzusatzwert.js @ 1035:479782c96efa

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 18 Feb 2016 11:21:42 +0100
parents 4d4de99bbe53
children 7e801af49eeb
comparison
equal deleted inserted replaced
1034:4d4de99bbe53 1035:479782c96efa
178 178
179 setReadOnly: function(b) { 179 setReadOnly: function(b) {
180 this.readOnly = b; 180 this.readOnly = b;
181 if (b) { 181 if (b) {
182 //Readonly 182 //Readonly
183 if (this.getPlugin('rowedit')){ 183 if (this.getPlugin('rowedit')) {
184 this.getPlugin('rowedit').disable(); 184 this.getPlugin('rowedit').disable();
185 } 185 }
186 this.down('button[action=delete]').disable(); 186 this.down('button[action=delete]').disable();
187 this.down('button[action=add]').disable(); 187 this.down('button[action=add]').disable();
188 }else{ 188 }
189 else {
189 //Writable 190 //Writable
190 if (this.getPlugin('rowedit')){ 191 if (this.getPlugin('rowedit')) {
191 this.getPlugin('rowedit').enable(); 192 this.getPlugin('rowedit').enable();
192 } 193 }
193 //this.down('button[action=delete]').enable(); 194 //this.down('button[action=delete]').enable();
194 this.down('button[action=add]').enable(); 195 this.down('button[action=add]').enable();
195 } 196 }

http://lada.wald.intevation.org