Mercurial > lada > lada-client
comparison app/controller/form/Messung.js @ 1356:81b585645581
Remove dead code.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 07 Feb 2017 17:18:13 +0100 |
parents | 0a032c98c3a6 |
children | 7e9a6f0e55b3 |
comparison
equal
deleted
inserted
replaced
1355:d8db43ac9c12 | 1356:81b585645581 |
---|---|
77 button.up('toolbar').down('button[action=discard]') | 77 button.up('toolbar').down('button[action=discard]') |
78 .setDisabled(true); | 78 .setDisabled(true); |
79 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); | 79 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); |
80 var json = response.request.scope.reader.jsonData; | 80 var json = response.request.scope.reader.jsonData; |
81 if (json) { | 81 if (json) { |
82 if (json.errors || json.warnings) { | |
83 if (json.errors.totalCount > 0 || json.warnings.totalCount > 0) { | |
84 formPanel.setMessages(json.errors, json.warnings); | |
85 } | |
86 } | |
87 if (json.message) { | 82 if (json.message) { |
88 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') | 83 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') |
89 + ' #' + json.message, | 84 + ' #' + json.message, |
90 Lada.getApplication().bundle.getMsg(json.message)); | 85 Lada.getApplication().bundle.getMsg(json.message)); |
91 } | 86 } |