[Lada-commits] [PATCH 4 of 9] added setReadOnly()

Wald Commits scm-commit at wald.intevation.org
Thu Mar 26 17:31:46 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1427382158 -3600
# Node ID a0df1a8dff2446fbc4118a0d638808b0a59d2ec8
# Parent  817524db4017f725980df4ba42ca1aa4da39a0e4
added setReadOnly()

diff -r 817524db4017 -r a0df1a8dff24 app/view/form/Messung.js
--- 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);
     }
 });


More information about the Lada-commits mailing list