diff app/view/form/Messung.js @ 694:a0df1a8dff24

added setReadOnly()
author Dustin Demuth <dustin@intevation.de>
date Thu, 26 Mar 2015 16:02:38 +0100
parents 04cf6b514e3e
children 2ad36c8db968
line wrap: on
line diff
--- a/app/view/form/Messung.js	Thu Mar 26 15:54:50 2015 +0100
+++ b/app/view/form/Messung.js	Thu Mar 26 16:02:38 2015 +0100
@@ -130,7 +130,12 @@
         // TODO this is a stub
     },
 
-    setReadonly: function() {
-        // TODO this is a stub
+    setReadOnly: function(value) {
+        this.down('textfield[name=nebenprobenNr]').setReadOnly(value);
+        this.down('messmethode[name=mmtId]').setReadOnly(value);
+        this.down('datetime[name=messzeitpunkt]').setReadOnly(value);
+        this.down('numberfield[name=messdauer]').setReadOnly(value);
+        this.down('chkbox[name=fertig]').setReadOnly(value);
+        this.down('chkbox[name=geplant]').setReadOnly(value);
     }
 });

http://lada.wald.intevation.org