changeset 1360:d1dce50fa9a6

Fix reset button in Ortserstellung form.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2017 18:56:35 +0100
parents 49efc1cc0eac
children 5c2d6812d85a
files app/controller/form/Ortserstellung.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Ortserstellung.js	Tue Feb 07 18:50:32 2017 +0100
+++ b/app/controller/form/Ortserstellung.js	Tue Feb 07 18:56:35 2017 +0100
@@ -120,8 +120,7 @@
     },
 
     discard: function(button) {
-        button.up('panel').reset();
-        button.up('panel').down('button [action=save]').setDisabled(true);
+        button.up('panel').getForm().reset();
     },
 
     /**

http://lada.wald.intevation.org