changeset 685:0391425689ed

Also Deskriptoren must be set to readonly
author Dustin Demuth <dustin@intevation.de>
date Wed, 25 Mar 2015 15:18:46 +0100
parents 69cb367c0a63
children 14ac75f80ba1
files app/view/form/Probe.js
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/form/Probe.js	Wed Mar 25 15:04:45 2015 +0100
+++ b/app/view/form/Probe.js	Wed Mar 25 15:18:46 2015 +0100
@@ -362,21 +362,21 @@
         this.down('datetime[name=solldatumBeginn]').setReadOnly(value);
         this.down('datetime[name=solldatumEnde]').setReadOnly(value);
         this.down('numberfield[name=probeNehmerId]').setReadOnly(value);
+
+        //Deskriptoren
+        for (var i = 0; i < 12; i++) {
+            this.down('field[name=s'+i+']').setReadOnly(value);
+        }
     },
 
     buildDescriptors: function() {
         var fields = [];
-        var ro = false;
-        if (this.readonly) {
-            ro = true;
-        }
         for (var i = 0; i < 12; i++) {
             fields[i] = {
                 fieldLabel: 'S' + i,
                 name: 's' + i,
                 labelWidth: 25,
                 margin: '0, 10, 5, 0',
-                readOnly: ro
             };
         }
         return fields;

http://lada.wald.intevation.org