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

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

http://lada.wald.intevation.org