diff app/controller/form/Ortszuordnung.js @ 1153:9486001a01ca

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 02 Jun 2016 17:32:59 +0200
parents 1cf5280bbc45
children a792eecf1614
line wrap: on
line diff
--- a/app/controller/form/Ortszuordnung.js	Thu Jun 02 12:30:27 2016 +0200
+++ b/app/controller/form/Ortszuordnung.js	Thu Jun 02 17:32:59 2016 +0200
@@ -152,7 +152,9 @@
      */
     dirtyForm: function(form, dirty) {
         if (dirty) {
-            if (form.getValues().ortId !== '') {
+            if (form.getValues().ortId !== ''
+                && /[UEZA]/.test(form.getValues().ortszuordnungTyp)
+               ) {
                 form.owner.down('button[action=save]').setDisabled(false);
             }
             form.owner.down('button[action=discard]').setDisabled(false);

http://lada.wald.intevation.org