Mercurial > lada > lada-client
comparison app/controller/form/Probe.js @ 680:31fc4f94f98f
merged
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 24 Mar 2015 12:15:39 +0100 |
parents | a24db43b13b5 |
children | 14ac75f80ba1 |
comparison
equal
deleted
inserted
replaced
679:60a3e9809ea4 | 680:31fc4f94f98f |
---|---|
51 }, | 51 }, |
52 failure: function(record, response) { | 52 failure: function(record, response) { |
53 button.setDisabled(true); | 53 button.setDisabled(true); |
54 button.up('toolbar').down('button[action=discard]') | 54 button.up('toolbar').down('button[action=discard]') |
55 .setDisabled(true); | 55 .setDisabled(true); |
56 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); | 56 var rec = formPanel.getForm().getRecord(); |
57 rec.dirty = false; | |
58 formPanel.getForm().loadRecord(rec); | |
57 var json = response.request.scope.reader.jsonData; | 59 var json = response.request.scope.reader.jsonData; |
58 if (json) { | 60 if (json) { |
59 formPanel.setMessages(json.errors, json.warnings); | 61 formPanel.setMessages(json.errors, json.warnings); |
60 } | 62 } |
61 } | 63 } |