Mercurial > lada > lada-client
changeset 641:5b5bba1d8e6a
Load and update the correct orte form.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 Mar 2015 16:04:23 +0100 |
parents | f4969c71654a |
children | bd151c8b7ad1 |
files | app/controller/form/Ort.js |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/form/Ort.js Tue Mar 17 16:02:33 2015 +0100 +++ b/app/controller/form/Ort.js Tue Mar 17 16:04:23 2015 +0100 @@ -27,7 +27,7 @@ }, save: function(button) { - var formPanel = button.up('form'); + var formPanel = button.up('ortform'); var data = formPanel.getForm().getFieldValues(true); for (var key in data) { formPanel.getForm().getRecord().set(key, data[key]); @@ -35,9 +35,7 @@ formPanel.getForm().getRecord().save({ success: function(record, response) { var json = Ext.decode(response.response.responseText); - if (response.action !== 'create' && - json && - json.success) { + if (json) { button.setDisabled(true); button.up('toolbar').down('button[action=discard]') .setDisabled(true);