diff app/view/widgets/Uwb.js @ 261:1375ff0f248d

Issue50. Show ID an text in combobox.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 26 Jul 2013 10:12:58 +0200
parents 70a1b5962930
children 852dc338894e
line wrap: on
line diff
--- a/app/view/widgets/Uwb.js	Thu Jul 25 15:39:15 2013 +0200
+++ b/app/view/widgets/Uwb.js	Fri Jul 26 10:12:58 2013 +0200
@@ -1,6 +1,6 @@
 // Combobox for Umweltbereich
 var uwbStore = Ext.create('Ext.data.Store', {
-    fields: ['umwId'],
+    fields: ['umwId', 'umweltBereich'],
     sorters: [{
         property: 'umwId',
     }],
@@ -17,6 +17,7 @@
 });
 
 Ext.define('Lada.view.widgets.Uwb' ,{
+        tpl: '<tpl for="."><div class="x-combo-list-item" >{umwId} - {umweltBereich}</div></tpl>',
         extend: 'Ext.form.ComboBox',
         alias: 'widget.uwb',
         store: uwbStore,

http://lada.wald.intevation.org