comparison app/controller/form/Messprogramm.js @ 1358:2e462c5334f1

Remove dead code.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2017 18:31:58 +0100
parents bfdc00c24baf
children 49efc1cc0eac
comparison
equal deleted inserted replaced
1357:b96d98f0cb71 1358:2e462c5334f1
188 var rec = formPanel.getForm().getRecord(); 188 var rec = formPanel.getForm().getRecord();
189 rec.dirty = false; 189 rec.dirty = false;
190 formPanel.getForm().loadRecord(record); 190 formPanel.getForm().loadRecord(record);
191 var json = response.request.scope.reader.jsonData; 191 var json = response.request.scope.reader.jsonData;
192 if (json) { 192 if (json) {
193 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){
194 formPanel.setMessages(json.errors, json.warnings);
195 }
196
197 if(json.message){ 193 if(json.message){
198 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') 194 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title')
199 +' #'+json.message, 195 +' #'+json.message,
200 Lada.getApplication().bundle.getMsg(json.message)); 196 Lada.getApplication().bundle.getMsg(json.message));
201 } else { 197 } else {
202 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), 198 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
203 Lada.getApplication().bundle.getMsg('err.msg.generic.body')); 199 Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
204 } 200 }
205 formPanel.clearMessages(); 201 formPanel.clearMessages();
206 //formPanel.setRecord(record);
207 formPanel.setMessages(json.errors, json.warnings); 202 formPanel.setMessages(json.errors, json.warnings);
208 } else { 203 } else {
209 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), 204 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
210 Lada.getApplication().bundle.getMsg('err.msg.response.body')); 205 Lada.getApplication().bundle.getMsg('err.msg.response.body'));
211 } 206 }

http://lada.wald.intevation.org