[Lada-commits] [PATCH] Set readonly state for messstelle-labor widget

Wald Commits scm-commit at wald.intevation.org
Thu Mar 24 09:49:35 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1458809368 -3600
# Node ID 096d552508cd3c7ef3894b247b2d1c8c8cb84b56
# Parent  3da8e8b973ad1017fd5e5efd9483a3c3f4f12a9d
Set readonly state for messstelle-labor widget.

diff -r 3da8e8b973ad -r 096d552508cd app/view/form/Messprogramm.js
--- a/app/view/form/Messprogramm.js	Mon Mar 14 10:16:22 2016 +0100
+++ b/app/view/form/Messprogramm.js	Thu Mar 24 09:49:28 2016 +0100
@@ -560,7 +560,7 @@
 
     clearMessages: function() {
         // TODO
-        this.down('cbox[name=mstId]').clearWarningOrError();
+        this.down('cbox[name=mstlabor]').clearWarningOrError();
         this.down('tfield[name=name]').clearWarningOrError();
         //no clearmsg for probeKommentar
         this.down('fset[name=erwAngaben]').clearMessages();
diff -r 3da8e8b973ad -r 096d552508cd app/view/form/Probe.js
--- a/app/view/form/Probe.js	Mon Mar 14 10:16:22 2016 +0100
+++ b/app/view/form/Probe.js	Thu Mar 24 09:49:28 2016 +0100
@@ -460,7 +460,7 @@
     },
 
     clearMessages: function() {
-        this.down('cbox[name=mstId]').clearWarningOrError();
+        this.down('cbox[name=mstlabor]').clearWarningOrError();
         this.down('tfield[name=hauptprobenNr]').clearWarningOrError();
         this.down('cbox[name=datenbasisId]').clearWarningOrError();
         this.down('cbox[name=baId]').clearWarningOrError();
@@ -476,7 +476,7 @@
     },
 
     setReadOnly: function(value) {
-        this.down('cbox[name=mstId]').setReadOnly(value);
+        this.down('cbox[name=mstlabor]').setReadOnly(value);
         this.down('tfield[name=hauptprobenNr]').setReadOnly(value);
         this.down('cbox[name=datenbasisId]').setReadOnly(value);
         this.down('cbox[name=baId]').setReadOnly(value);


More information about the Lada-commits mailing list