Mercurial > lada > lada-client
comparison app/view/grid/Ortszuordnung.js @ 1035:479782c96efa
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Feb 2016 11:21:42 +0100 |
parents | 4d4de99bbe53 |
children | 981339d774b8 |
comparison
equal
deleted
inserted
replaced
1034:4d4de99bbe53 | 1035:479782c96efa |
---|---|
133 | 133 |
134 setReadOnly: function(b) { | 134 setReadOnly: function(b) { |
135 this.readOnly = b; | 135 this.readOnly = b; |
136 if (b) { | 136 if (b) { |
137 //Readonly | 137 //Readonly |
138 if (this.getPlugin('rowedit')){ | 138 if (this.getPlugin('rowedit')) { |
139 this.getPlugin('rowedit').disable(); | 139 this.getPlugin('rowedit').disable(); |
140 } | 140 } |
141 this.down('button[action=delete]').disable(); | 141 this.down('button[action=delete]').disable(); |
142 this.down('button[action=add]').disable(); | 142 this.down('button[action=add]').disable(); |
143 }else{ | 143 } |
144 else { | |
144 //Writable | 145 //Writable |
145 if (this.getPlugin('rowedit')){ | 146 if (this.getPlugin('rowedit')) { |
146 this.getPlugin('rowedit').enable(); | 147 this.getPlugin('rowedit').enable(); |
147 } | 148 } |
148 //this.down('button[action=delete]').enable(); | 149 //this.down('button[action=delete]').enable(); |
149 this.down('button[action=add]').enable(); | 150 this.down('button[action=add]').enable(); |
150 } | 151 } |