Mercurial > lada > lada-client
changeset 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 | 7a7a16b0a548 |
children | c3c8a3be5117 |
files | app/controller/FilterResult.js app/controller/form/Probe.js |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/FilterResult.js Mon Mar 16 12:09:17 2015 +0100 +++ b/app/controller/FilterResult.js Mon Mar 16 12:10:03 2015 +0100 @@ -42,6 +42,9 @@ }, addItem: function(button) { + var win = Ext.create('Lada.view.window.ProbeCreate'); + win.show(); + win.initData(); },
--- 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);