Mercurial > lada > lada-client
changeset 783:afdbe3770b99
Exclude deskriptor fields from form.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 13 May 2015 10:22:53 +0200 |
parents | a0cfe2395e0a |
children | f0b26df02157 |
files | app/view/form/Probe.js app/view/widget/Deskriptor.js |
diffstat | 2 files changed, 6 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Probe.js Tue May 12 17:49:09 2015 +0200 +++ b/app/view/form/Probe.js Wed May 13 10:22:53 2015 +0200 @@ -180,7 +180,7 @@ } } }, { - xtype: 'textfield', + xtype: 'tfield', maxLength: 38, enforceMaxLength: true, name: 'mediaDesk', @@ -213,18 +213,11 @@ title: 'Details Deskriptoren', collapsible: true, collapsed: true, - defaultType: 'textfield', layout: { type: 'table', columns: 3 }, - items: this.buildDescriptors(), - listeners: { - dirtychange: { - fn: this.updateOnChange, - scope: me - } - } + items: this.buildDescriptors() }] }] }, { @@ -405,7 +398,7 @@ this.down('cbox[name=netzbetreiberId]').setReadOnly(value); this.down('tfield[name=x11]').setReadOnly(value); this.down('textfield[name=media]').setReadOnly(value); - this.down('textfield[name=mediaDesk]').setReadOnly(value); + this.down('tfield[name=mediaDesk]').setReadOnly(value); this.down('cbox[name=umwId]').setReadOnly(value); this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); @@ -415,7 +408,7 @@ //Deskriptoren for (var i = 0; i < 12; i++) { - this.down('field[name=s'+i+']').setReadOnly(value); + this.down('deskriptor[layer='+i+']').setReadOnly(value); } }, @@ -425,7 +418,7 @@ fields[i] = { xtype: 'deskriptor', fieldLabel: 'S' + i, - name: 's' + i, + //name: 's' + i, labelWidth: 25, width: 190, layer: i,
--- a/app/view/widget/Deskriptor.js Tue May 12 17:49:09 2015 +0200 +++ b/app/view/widget/Deskriptor.js Wed May 13 10:22:53 2015 +0200 @@ -44,6 +44,7 @@ this.store = Ext.create('Lada.store.Deskriptoren'); this.callParent(arguments); + this.down('combobox').isFormField = false; }, getParents: function(field) {