Mercurial > lada > lada-client
comparison app/view/widget/Location.js @ 1055:65ea1c2a8c98
Updated orte window in messprogramme to new orte model.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 07 Mar 2016 11:19:49 +0100 |
parents | d47ee7439f44 |
children |
comparison
equal
deleted
inserted
replaced
1054:7e801af49eeb | 1055:65ea1c2a8c98 |
---|---|
10 * Combobox for Ortdetails | 10 * Combobox for Ortdetails |
11 */ | 11 */ |
12 Ext.define('Lada.view.widget.Location', { | 12 Ext.define('Lada.view.widget.Location', { |
13 extend: 'Lada.view.widget.base.ComboBox', | 13 extend: 'Lada.view.widget.base.ComboBox', |
14 alias: 'widget.location', | 14 alias: 'widget.location', |
15 displayField: 'bezeichnung', | 15 displayField: 'ortId', |
16 valueField: 'id', | 16 valueField: 'id', |
17 emptyText: 'Wählen Sie einen Ort', | 17 emptyText: 'Wählen Sie einen Ort', |
18 // Enable filtering of comboboxes | 18 // Enable filtering of comboboxes |
19 autoSelect: false, | 19 autoSelect: false, |
20 queryMode: 'local', | 20 queryMode: 'local', |
21 triggerAction: 'all', | 21 triggerAction: 'all', |
22 typeAhead: false, | 22 typeAhead: false, |
23 minChars: 0, | 23 minChars: 0, |
24 | 24 |
25 initComponent: function() { | 25 initComponent: function() { |
26 this.store = Ext.data.StoreManager.get('locations'); | 26 this.store = Ext.data.StoreManager.get('orte'); |
27 if (!this.store) { | 27 if (!this.store) { |
28 this.store = Ext.create('Lada.store.Locations'); | 28 this.store = Ext.create('Lada.store.Orte'); |
29 } | 29 } |
30 this.callParent(arguments); | 30 this.callParent(arguments); |
31 } | 31 } |
32 }); | 32 }); |