comparison app/view/widgets/Statuswert.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 850ccfe5f3c4
children
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 var statuswerteStore = Ext.create('Ext.data.Store', { 9 var statuswerteStore = Ext.create('Ext.data.Store', {
10 fields: ['id', 'status'], 10 fields: ['id', 'status'],
11 data: [ 11 data: [{
12 {"id":1, "status":"nicht vergeben"}, 12 'id': 1,
13 {"id":2, "status":"plausibel"}, 13 'status': 'nicht vergeben'
14 {"id":3, "status":"nicht repräsentativ"}, 14 }, {
15 {"id":4, "status":"nicht plausibel"} 15 'id': 2,
16 ] 16 'status': 'plausibel'
17 }, {
18 'id': 3,
19 'status': 'nicht repräsentativ'
20 }, {
21 'id': 4,
22 'status': 'nicht plausibel'
23 }]
17 }); 24 });
18 25
19 /** 26 /**
20 * Combobox for Statuswert 27 * Combobox for Statuswert
21 */ 28 */
22 Ext.define('Lada.view.widgets.Statuswert' ,{ 29 Ext.define('Lada.view.widgets.Statuswert', {
23 extend: 'Ext.form.ComboBox', 30 extend: 'Ext.form.ComboBox',
24 alias: 'widget.statuswert', 31 alias: 'widget.statuswert',
25 store: statuswerteStore, 32 store: statuswerteStore,
26 displayField:'status', 33 displayField: 'status',
27 valueField: 'id', 34 valueField: 'id',
28 typeAhead: false, 35 emptyText: 'Wählen Sie eine Status',
29 emptyText:'Wählen Sie eine Status',
30 // Enable filtering of comboboxes 36 // Enable filtering of comboboxes
31 autoSelect: false, 37 autoSelect: false,
32 queryMode: 'local', 38 queryMode: 'local',
33 triggerAction : 'all', 39 triggerAction: 'all',
34 typeAhead: false, 40 typeAhead: false,
35 minChars: 0, 41 minChars: 0,
36 42
37 initComponent: function() { 43 initComponent: function() {
38 this.callParent(arguments); 44 this.callParent(arguments);

http://lada.wald.intevation.org