diff app/controller/form/Messung.js @ 715:605bc34b45a0

Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
author Dustin Demuth <dustin@intevation.de>
date Wed, 08 Apr 2015 15:28:25 +0200
parents 2e478b3a587a
children c2a6f7caa71b
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Wed Apr 08 12:45:37 2015 +0200
+++ b/app/controller/form/Messung.js	Wed Apr 08 15:28:25 2015 +0200
@@ -104,7 +104,10 @@
         else {
             form.owner.down('button[action=save]').setDisabled(true);
             form.owner.down('button[action=discard]').setDisabled(true);
-            form.owner.up('window').enableChildren();
+            //Only enable children if the form was not readOnly
+            if (!form.getRecord().get('readonly')) {
+                form.owner.up('window').enableChildren();
+            }
         }
     }
 });

http://lada.wald.intevation.org