comparison app/view/widgets/Testdatensatz.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 testdatensatzStore = Ext.create('Ext.data.Store', { 9 var testdatensatzStore = Ext.create('Ext.data.Store', {
10 fields: ['testdatensatzId', 'testdatensatz'], 10 fields: ['testdatensatzId', 'testdatensatz'],
11 data: [ 11 data: [{
12 {"testdatensatzId":true, "testdatensatz":"Ja"}, 12 'testdatensatzId': true,
13 {"testdatensatzId":false, "testdatensatz":"Nein"} 13 'testdatensatz': 'Ja'
14 ] 14 }, {
15 'testdatensatzId': false,
16 'testdatensatz': 'Nein'
17 }]
15 }); 18 });
16 19
17 /** 20 /**
18 * Combobox for Testdatensatz. 21 * Combobox for Testdatensatz.
19 * This widget is also used a generic "Ja/Nein" combobox. 22 * This widget is also used a generic "Ja/Nein" combobox.
20 */ 23 */
21 Ext.define('Lada.view.widgets.Testdatensatz' ,{ 24 Ext.define('Lada.view.widgets.Testdatensatz', {
22 extend: 'Ext.form.ComboBox', 25 extend: 'Ext.form.ComboBox',
23 editable: false, 26 editable: false,
24 alias: 'widget.testdatensatz', 27 alias: 'widget.testdatensatz',
25 store: testdatensatzStore, 28 store: testdatensatzStore,
26 queryMode: 'local', 29 queryMode: 'local',
27 displayField:'testdatensatz', 30 displayField: 'testdatensatz',
28 valueField: 'testdatensatzId', 31 valueField: 'testdatensatzId',
29 emptyText:'Testdatensatz?', 32 emptyText: 'Testdatensatz?',
30 33
31 initComponent: function() { 34 initComponent: function() {
32 this.callParent(arguments); 35 this.callParent(arguments);
33 } 36 }
34 }); 37 });

http://lada.wald.intevation.org