[Lada-commits] [PATCH] Fix reset button in Ortserstellung form

Wald Commits scm-commit at wald.intevation.org
Tue Feb 7 18:56:45 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486490195 -3600
# Node ID d1dce50fa9a612ba0daf3c5dc8df645d415679fb
# Parent  49efc1cc0eacbff37d39e89cafdca8bd37eba019
Fix reset button in Ortserstellung form.

diff -r 49efc1cc0eac -r d1dce50fa9a6 app/controller/form/Ortserstellung.js
--- 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();
     },
 
     /**


More information about the Lada-commits mailing list