diff app/controller/form/Messung.js @ 687:aedf0709af92

Applied ReadOnlyParadigm to a Messung Window
author Dustin Demuth <dustin@intevation.de>
date Wed, 25 Mar 2015 15:45:33 +0100
parents 71e8b84d7829
children 817524db4017
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Wed Mar 25 15:20:45 2015 +0100
+++ b/app/controller/form/Messung.js	Wed Mar 25 15:45:33 2015 +0100
@@ -73,10 +73,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();
         }
     }
 });

http://lada.wald.intevation.org