Mercurial > lada > lada-client
changeset 854:a031b98c7edc
Geplant-Checkbox for Messungen is now ReadOnly
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 10 Jul 2015 10:20:13 +0200 |
parents | e5f72fb491f4 |
children | dff2798390f8 |
files | app/view/form/Messung.js app/view/widget/base/CheckBox.js |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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 }, {