[Lada-commits] [PATCH 1 of 3] Exclude deskriptor fields from form

Wald Commits scm-commit at wald.intevation.org
Wed May 13 10:24:05 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1431505373 -7200
# Node ID afdbe3770b99186145a01538f4895bc0141d4d2b
# Parent  a0cfe2395e0aa14ef922919980ba5f39441a63d1
Exclude deskriptor fields from form.

diff -r a0cfe2395e0a -r afdbe3770b99 app/view/form/Probe.js
--- 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,
diff -r a0cfe2395e0a -r afdbe3770b99 app/view/widget/Deskriptor.js
--- 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) {


More information about the Lada-commits mailing list