diff app/view/form/Probe.js @ 1068:096d552508cd

Set readonly state for messstelle-labor widget.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 24 Mar 2016 09:49:28 +0100
parents d198946e5540
children 9bcd17f7a0ae
line wrap: on
line diff
--- 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);

http://lada.wald.intevation.org