Mercurial > lada > lada-client
comparison app/view/grid/Messung.js @ 1035:479782c96efa
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Feb 2016 11:21:42 +0100 |
parents | 4d4de99bbe53 |
children | 7d7b691713aa |
comparison
equal
deleted
inserted
replaced
1034:4d4de99bbe53 | 1035:479782c96efa |
---|---|
251 | 251 |
252 setReadOnly: function(b) { | 252 setReadOnly: function(b) { |
253 this.readOnly = b; | 253 this.readOnly = b; |
254 if (b === true) { | 254 if (b === true) { |
255 //Readonly | 255 //Readonly |
256 if (this.getPlugin('rowedit')){ | 256 if (this.getPlugin('rowedit')) { |
257 this.getPlugin('rowedit').disable(); | 257 this.getPlugin('rowedit').disable(); |
258 } | 258 } |
259 this.down('button[action=delete]').disable(); | 259 this.down('button[action=delete]').disable(); |
260 this.down('button[action=add]').disable(); | 260 this.down('button[action=add]').disable(); |
261 }else{ | 261 } |
262 else { | |
262 //Writable | 263 //Writable |
263 if (this.getPlugin('rowedit')){ | 264 if (this.getPlugin('rowedit')) { |
264 this.getPlugin('rowedit').enable(); | 265 this.getPlugin('rowedit').enable(); |
265 } | 266 } |
266 //this.down('button[action=delete]').enable(); | 267 //this.down('button[action=delete]').enable(); |
267 //always disabled, unless a row was selected | 268 //always disabled, unless a row was selected |
268 this.down('button[action=add]').enable(); | 269 this.down('button[action=add]').enable(); |