diff app/controller/grid/Messmethode.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 24b5684d74d7
children
line wrap: on
line diff
--- a/app/controller/grid/Messmethode.js	Wed Mar 29 08:49:56 2017 +0200
+++ b/app/controller/grid/Messmethode.js	Wed Mar 29 14:27:20 2017 +0200
@@ -143,8 +143,8 @@
         //Set Store
         ngrid.setData(mmtmessgroessenstore);
 
-        //Enable Editing
-        ngrid.setReadOnly(false);
+        //Enable Editing depending on the readonly state of the messprogramm.
+        ngrid.setReadOnly(row.view.up('window').record.get('readonly'));
     },
 
     /**

http://lada.wald.intevation.org