[Lada-commits] [PATCH] Geplant-Checkbox for Messungen is now ReadOnly
Wald Commits
scm-commit at wald.intevation.org
Fri Jul 10 10:20:24 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1436516413 -7200
# Node ID a031b98c7edc9b39b3b9e0d73a8b1609f6da766c
# Parent e5f72fb491f4d1cc6e04eb06cfdc7e52344b6719
Geplant-Checkbox for Messungen is now ReadOnly
diff -r e5f72fb491f4 -r a031b98c7edc app/view/form/Messung.js
--- a/app/view/form/Messung.js Fri Jul 10 10:07:39 2015 +0200
+++ b/app/view/form/Messung.js Fri Jul 10 10:20:13 2015 +0200
@@ -108,6 +108,7 @@
}, {
xtype: 'chkbox',
name: 'geplant',
+ readOnly: true,
margin: '0, 10, 5, 0',
fieldLabel: 'Geplant',
width: 300,
@@ -171,7 +172,6 @@
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=geplant]').setReadOnly(value);
if (!this.getForm().getRecord().get('owner')) {
//Only set this Field to Readonly when the User is NOT the Owner of the Record.
this.down('chkbox[name=fertig]').setReadOnly(value);
diff -r e5f72fb491f4 -r a031b98c7edc app/view/widget/base/CheckBox.js
--- a/app/view/widget/base/CheckBox.js Fri Jul 10 10:07:39 2015 +0200
+++ b/app/view/widget/base/CheckBox.js Fri Jul 10 10:20:13 2015 +0200
@@ -25,6 +25,7 @@
labelWidth: this.labelWidth,
listeners: this.listeners,
triggerAction: this.triggerAction,
+ readOnly: this.readOnly,
msgTarget: 'none',
tpl: this.tpl
}, {
More information about the Lada-commits
mailing list