comparison app/view/widgets/Messmethode.js @ 497:7c0653e8d9f7

Fixed some js related issues (unused vars, arrays, etc.) and code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:38:17 +0100
parents d07e5086a64b
children c1b77fb96b01
comparison
equal deleted inserted replaced
496:d07e5086a64b 497:7c0653e8d9f7
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz 1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH 2 * Software engineering by Intevation GmbH
3 * 3 *
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 /** 9 /**
10 * Combobox for Messmethode 10 * Combobox for Messmethode
11 */ 11 */
12 Ext.define('Lada.view.widgets.Messmethode' ,{ 12 Ext.define('Lada.view.widgets.Messmethode', {
13 extend: 'Ext.form.ComboBox', 13 extend: 'Ext.form.ComboBox',
14 require: ['Lada.store.StaMessmethoden'], 14 require: ['Lada.store.StaMessmethoden'],
15 alias: 'widget.messmethode', 15 alias: 'widget.messmethode',
16 store: 'StaMessmethoden', 16 store: 'StaMessmethoden',
17 displayField:'messmethode', 17 displayField: 'messmethode',
18 valueField: 'id', 18 valueField: 'id',
19 emptyText:'Wählen Sie eine Messmethode', 19 emptyText: 'Wählen Sie eine Messmethode',
20 // Enable filtering of comboboxes 20 // Enable filtering of comboboxes
21 autoSelect: false, 21 autoSelect: false,
22 queryMode: 'local', 22 queryMode: 'local',
23 triggerAction : 'all', 23 triggerAction: 'all',
24 typeAhead: false, 24 typeAhead: false,
25 minChars: 0, 25 minChars: 0,
26 tpl: '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >{id} - {messmethode}</div></tpl>', 26 tpl: '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' +
27 '{id} - {messmethode}</div></tpl>',
27 28
28 initComponent: function() { 29 initComponent: function() {
29 this.store = Ext.data.StoreManager.get('staMessmethoden'); 30 this.store = Ext.data.StoreManager.get('staMessmethoden');
30 if (!this.store) { 31 if (!this.store) {
31 this.store = Ext.create('Lada.store.StaMessmethoden'); 32 this.store = Ext.create('Lada.store.StaMessmethoden');

http://lada.wald.intevation.org