changeset 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 3da8e8b973ad
children 1d20cec263ee
files app/view/form/Messprogramm.js app/view/form/Probe.js
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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