diff app/view/window/ProbeEdit.js @ 1034:4d4de99bbe53

Get rid of double setting readOnly status of probe window child elements.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 18 Feb 2016 11:21:22 +0100
parents e4b6b6c5fb89
children 981339d774b8
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Thu Feb 18 11:19:25 2016 +0100
+++ b/app/view/window/ProbeEdit.js	Thu Feb 18 11:21:22 2016 +0100
@@ -182,14 +182,10 @@
             // Disable only when the User is not the owner of the Probe
             // Works in symbiosis with success callback some lines above.
             this.down('fset[name=messungen]').down('messunggrid').setReadOnly(true);
-            this.down('fset[name=messungen]').down('messunggrid').readOnly = true;
         }
         this.down('fset[name=orte]').down('ortgrid').setReadOnly(true);
-        this.down('fset[name=orte]').down('ortgrid').readOnly = true;
         this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').setReadOnly(true);
-        this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').readOnly = true;
         this.down('fset[name=pkommentare]').down('pkommentargrid').setReadOnly(true);
-        this.down('fset[name=pkommentare]').down('pkommentargrid').readOnly = true;
     },
 
     /**
@@ -197,13 +193,9 @@
      */
     enableChildren: function() {
         this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false);
-        this.down('fset[name=messungen]').down('messunggrid').readOnly = false;
         this.down('fset[name=orte]').down('ortgrid').setReadOnly(false);
-        this.down('fset[name=orte]').down('ortgrid').readOnly = false;
         this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').setReadOnly(false);
-        this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').readOnly = false;
         this.down('fset[name=pkommentare]').down('pkommentargrid').setReadOnly(false);
-        this.down('fset[name=pkommentare]').down('pkommentargrid').readOnly = false;
     },
 
     /**

http://lada.wald.intevation.org