changeset 847:95d40ca7bb70

Netbetreiber Combobox shall be readonly
author Dustin Demuth <dustin@intevation.de>
date Wed, 08 Jul 2015 09:47:30 +0200
parents af9d506b0700
children ffcf8898a261
files app/view/form/Messprogramm.js app/view/form/Probe.js app/view/widget/Netzbetreiber.js app/view/widget/base/ComboBox.js
diffstat 4 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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);
--- 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',
--- 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,

http://lada.wald.intevation.org