Mercurial > lada > lada-client
diff app/controller/form/Probe.js @ 620:e0b966b32163
Open probe create window on button click.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 16 Mar 2015 12:10:03 +0100 |
parents | cf328526b5bb |
children | fdaabab6f4cc |
line wrap: on
line diff
--- a/app/controller/form/Probe.js Mon Mar 16 12:09:17 2015 +0100 +++ b/app/controller/form/Probe.js Mon Mar 16 12:10:03 2015 +0100 @@ -32,9 +32,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);