changeset 686:14ac75f80ba1

Forgot to commit the controller for commit 684
author Dustin Demuth <dustin@intevation.de>
date Wed, 25 Mar 2015 15:20:45 +0100
parents 0391425689ed
children aedf0709af92
files app/controller/form/Probe.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Probe.js	Wed Mar 25 15:18:46 2015 +0100
+++ b/app/controller/form/Probe.js	Wed Mar 25 15:20:45 2015 +0100
@@ -74,10 +74,12 @@
         if (dirty) {
             form.owner.down('button[action=save]').setDisabled(false);
             form.owner.down('button[action=discard]').setDisabled(false);
+            form.owner.up('window').disableChildren();
         }
         else {
             form.owner.down('button[action=save]').setDisabled(true);
             form.owner.down('button[action=discard]').setDisabled(true);
+            form.owner.up('window').enableChildren(); // todo this might not be true in all cases
         }
     }
 });

http://lada.wald.intevation.org