[Lada-commits] [PATCH] Also Deskriptoren must be set to readonly
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 25 15:18:54 CET 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1427293126 -3600
# Node ID 0391425689ed344cff840dc6b8afd90e5058e9e3
# Parent 69cb367c0a63533326db84befed9080967a050f5
Also Deskriptoren must be set to readonly
diff -r 69cb367c0a63 -r 0391425689ed app/view/form/Probe.js
--- a/app/view/form/Probe.js Wed Mar 25 15:04:45 2015 +0100
+++ b/app/view/form/Probe.js Wed Mar 25 15:18:46 2015 +0100
@@ -362,21 +362,21 @@
this.down('datetime[name=solldatumBeginn]').setReadOnly(value);
this.down('datetime[name=solldatumEnde]').setReadOnly(value);
this.down('numberfield[name=probeNehmerId]').setReadOnly(value);
+
+ //Deskriptoren
+ for (var i = 0; i < 12; i++) {
+ this.down('field[name=s'+i+']').setReadOnly(value);
+ }
},
buildDescriptors: function() {
var fields = [];
- var ro = false;
- if (this.readonly) {
- ro = true;
- }
for (var i = 0; i < 12; i++) {
fields[i] = {
fieldLabel: 'S' + i,
name: 's' + i,
labelWidth: 25,
margin: '0, 10, 5, 0',
- readOnly: ro
};
}
return fields;
More information about the Lada-commits
mailing list