[Lada-commits] [PATCH 2 of 3] Netbetreiber Combobox shall be readonly
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 8 10:06:47 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1436341650 -7200
# Node ID 95d40ca7bb7043df5e5b1a8982ba19d93b352c28
# Parent af9d506b0700e8523a235c8d5fcbf24e82ac373a
Netbetreiber Combobox shall be readonly
diff -r af9d506b0700 -r 95d40ca7bb70 app/view/form/Messprogramm.js
--- a/app/view/form/Messprogramm.js Tue Jul 07 14:14:00 2015 +0200
+++ b/app/view/form/Messprogramm.js Wed Jul 08 09:47:30 2015 +0200
@@ -177,6 +177,7 @@
xtype: 'netzbetreiber',
name: 'netzbetreiberId',
editable: false,
+ readOnly: true,
fieldLabel: i18n.getMsg('netzbetreiberId'),
anchor: '100%',
labelWidth: 105,
diff -r af9d506b0700 -r 95d40ca7bb70 app/view/form/Probe.js
--- a/app/view/form/Probe.js Tue Jul 07 14:14:00 2015 +0200
+++ b/app/view/form/Probe.js Wed Jul 08 09:47:30 2015 +0200
@@ -145,6 +145,7 @@
xtype: 'netzbetreiber',
name: 'netzbetreiberId',
editable: false,
+ readOnly: true,
fieldLabel: 'Netzbetreiber',
anchor: '100%',
labelWidth: 105,
@@ -397,7 +398,7 @@
this.down('cbox[name=baId]').setReadOnly(value);
this.down('cbox[name=test]').setReadOnly(value);
this.down('cbox[name=probenartId]').setReadOnly(value);
- this.down('cbox[name=netzbetreiberId]').setReadOnly(value);
+ //this.down('cbox[name=netzbetreiberId]').setReadOnly(value);
this.down('tfield[name=x11]').setReadOnly(value);
this.down('textfield[name=media]').setReadOnly(value);
this.down('tfield[name=mediaDesk]').setReadOnly(value);
diff -r af9d506b0700 -r 95d40ca7bb70 app/view/widget/Netzbetreiber.js
--- a/app/view/widget/Netzbetreiber.js Tue Jul 07 14:14:00 2015 +0200
+++ b/app/view/widget/Netzbetreiber.js Wed Jul 08 09:47:30 2015 +0200
@@ -15,6 +15,7 @@
store: 'StaNetzbetreiber',
displayField: 'netzbetreiber',
valueField: 'id',
+ readOnly: this.readOnly,
// Enable filtering of comboboxes
queryMode: 'local',
triggerAction: 'all',
diff -r af9d506b0700 -r 95d40ca7bb70 app/view/widget/base/ComboBox.js
--- a/app/view/widget/base/ComboBox.js Tue Jul 07 14:14:00 2015 +0200
+++ b/app/view/widget/base/ComboBox.js Wed Jul 08 09:47:30 2015 +0200
@@ -37,6 +37,7 @@
maxChars: this.maxChars,
multiSelect: this.multiSelect,
editable: this.editable || true,
+ readOnly: this.readOnly,
forceSelection: this.forceSelection || false,
msgTarget: 'none',
tpl: this.tpl,
More information about the Lada-commits
mailing list