diff app/view/window/Messprogramm.js @ 1419:01f083db45b7

Use readonly flag to set edit status of UI
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 29 Mar 2017 14:27:20 +0200
parents 1a2cd9bef6d7
children
line wrap: on
line diff
--- a/app/view/window/Messprogramm.js	Wed Mar 29 08:49:56 2017 +0200
+++ b/app/view/window/Messprogramm.js	Wed Mar 29 14:27:20 2017 +0200
@@ -147,7 +147,6 @@
         // create a Edit window
         if (this.record) {
             this.setLoading(true);
-            this.down('messmethodengrid').setReadOnly(false);
             Ext.ClassManager.get('Lada.model.Messprogramm').load(this.record.get('id'), {
                 failure: function(record, action) {
                     me.setLoading(false);
@@ -201,6 +200,7 @@
 
     disableChildren: function() {
         this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(true);
+        this.down('messmethodengrid').setReadOnly(true);
     },
 
     enableChildren: function() {

http://lada.wald.intevation.org