Mercurial > lada > lada-client
comparison app/controller/form/Messung.js @ 972:24b5684d74d7
Set letzteAenderung in a Bunch of controllers.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 17 Nov 2015 14:58:17 +0100 |
parents | 6e28ebbe1a73 |
children | 0a032c98c3a6 |
comparison
equal
deleted
inserted
replaced
971:37f30b01788c | 972:24b5684d74d7 |
---|---|
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.totalCount > 0 || json.warnings.totalCount > 0) { | 82 if (json.errors || json.warnings) { |
83 formPanel.setMessages(json.errors, json.warnings); | 83 if (json.errors.totalCount > 0 || json.warnings.totalCount > 0) { |
84 formPanel.setMessages(json.errors, json.warnings); | |
85 } | |
84 } | 86 } |
85 | |
86 if (json.message) { | 87 if (json.message) { |
87 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') | 88 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') |
88 + ' #' + json.message, | 89 + ' #' + json.message, |
89 Lada.getApplication().bundle.getMsg(json.message)); | 90 Lada.getApplication().bundle.getMsg(json.message)); |
90 } | 91 } |