Mercurial > lada > lada-client
comparison app/controller/form/Probe.js @ 1356:81b585645581
Remove dead code.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 07 Feb 2017 17:18:13 +0100 |
parents | 9d298c82575f |
children | 49efc1cc0eac |
comparison
equal
deleted
inserted
replaced
1355:d8db43ac9c12 | 1356:81b585645581 |
---|---|
116 var rec = formPanel.getForm().getRecord(); | 116 var rec = formPanel.getForm().getRecord(); |
117 rec.dirty = false; | 117 rec.dirty = false; |
118 formPanel.getForm().loadRecord(record); | 118 formPanel.getForm().loadRecord(record); |
119 var json = response.request.scope.reader.jsonData; | 119 var json = response.request.scope.reader.jsonData; |
120 if (json) { | 120 if (json) { |
121 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){ | |
122 formPanel.setMessages(json.errors, json.warnings); | |
123 } | |
124 | |
125 if(json.message){ | 121 if(json.message){ |
126 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') | 122 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') |
127 +' #'+json.message, | 123 +' #'+json.message, |
128 Lada.getApplication().bundle.getMsg(json.message)); | 124 Lada.getApplication().bundle.getMsg(json.message)); |
129 } else { | 125 } else { |