Mercurial > lada > lada-client
comparison app/view/window/MessungEdit.js @ 824:fab0b7be5aca
add disbled remove button to all grids which relate to proben or messungen. Messprogramme-grids are untouched. BUG: When the last entry is deleted, the button remains active
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 29 May 2015 14:23:03 +0200 |
parents | baef70abfe71 |
children | 613ad3263e59 |
comparison
equal
deleted
inserted
replaced
823:5ed0e6273888 | 824:fab0b7be5aca |
---|---|
166 this.enableChildren(); | 166 this.enableChildren(); |
167 }, | 167 }, |
168 | 168 |
169 disableChildren: function() { | 169 disableChildren: function() { |
170 this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(true); | 170 this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(true); |
171 this.down('fset[name=messwerte]').down('messwertgrid').readOnly = true; | |
171 this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(true); | 172 this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(true); |
173 this.down('fset[name=messungstatus]').down('statusgrid').readOnly = true; | |
172 this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(true); | 174 this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(true); |
175 this.down('fset[name=messungskommentare]').down('mkommentargrid').readOnly = true; | |
173 }, | 176 }, |
174 | 177 |
175 enableChildren: function() { | 178 enableChildren: function() { |
176 this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(false); | 179 this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(false); |
180 this.down('fset[name=messwerte]').down('messwertgrid').readOnly = false; | |
177 this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(false); | 181 this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(false); |
182 this.down('fset[name=messungstatus]').down('statusgrid').readOnly = false; | |
178 this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(false); | 183 this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(false); |
184 this.down('fset[name=messungskommentare]').down('mkommentargrid').readOnly = false; | |
179 }, | 185 }, |
180 | 186 |
181 setMessages: function(errors, warnings) { | 187 setMessages: function(errors, warnings) { |
182 this.down('messungform').setMessages(errors, warnings); | 188 this.down('messungform').setMessages(errors, warnings); |
183 }, | 189 }, |