comparison app/view/form/Messung.js @ 997:c943340176d4

Disable the statusresetbutton
author Dustin Demuth <dustin@intevation.de>
date Fri, 08 Jan 2016 14:43:41 +0100
parents abc2e9fe5069
children d8e74bd89d6b
comparison
equal deleted inserted replaced
996:bf7bb9583a40 997:c943340176d4
168 168
169 retrieveStatus: function(messungsId, statusId) { 169 retrieveStatus: function(messungsId, statusId) {
170 var i18n = Lada.getApplication().bundle; 170 var i18n = Lada.getApplication().bundle;
171 var msg = i18n.getMsg('load.statuswert'); 171 var msg = i18n.getMsg('load.statuswert');
172 var textfield = this.down('[name=status]'); 172 var textfield = this.down('[name=status]');
173 var messwin = this.up('window');
173 174
174 if(textfield) { 175 if(textfield) {
175 textfield.setRawValue(msg); 176 textfield.setRawValue(msg);
176 } 177 }
177 178
190 sw = sStore.getById(statusId).get('statusWert'); 191 sw = sStore.getById(statusId).get('statusWert');
191 ss = sStore.getById(statusId).get('statusStufe'); 192 ss = sStore.getById(statusId).get('statusStufe');
192 } 193 }
193 this.setStatusWert(sw); 194 this.setStatusWert(sw);
194 this.setStatusStufe(ss); 195 this.setStatusStufe(ss);
196
197 // Enable / Disable the statusreset button of the statusgrid of the messungform
198 if (messwin.record.get('statusEdit') === true &&
199 sw != 0 &&
200 sw != 4) {
201 messwin.enableStatusReset();
202 }
203 else {
204 messwin.disableStatusReset();
205 }
206
195 }, 207 },
196 scope: this 208 scope: this
197 }); 209 });
198 }, 210 },
199 211

http://lada.wald.intevation.org