comparison app/view/widgets/Betriebsart.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 446e99cfd425
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 betriebsartStore = Ext.create('Ext.data.Store', { 9 var betriebsartStore = Ext.create('Ext.data.Store', {
10 fields: ['betriebsartId', 'betriebsart'], 10 fields: ['betriebsartId', 'betriebsart'],
11 data: [ 11 data: [{
12 {"betriebsartId":"1", "betriebsart":"Normal-/Routinebtrieb"}, 12 'betriebsartId': '1',
13 {"betriebsartId":"2", "betriebsart":"Störfall/Intensivbetrieb"} 13 'betriebsart': 'Normal-/Routinebtrieb'
14 ] 14 }, {
15 'betriebsartId': '2',
16 'betriebsart': 'Störfall/Intensivbetrieb'
17 }]
15 }); 18 });
16 19
17 /** 20 /**
18 * Combobox for Betriebsart 21 * Combobox for Betriebsart
19 */ 22 */
20 Ext.define('Lada.view.widgets.Betriebsart' ,{ 23 Ext.define('Lada.view.widgets.Betriebsart', {
21 extend: 'Ext.form.ComboBox', 24 extend: 'Ext.form.ComboBox',
22 alias: 'widget.betriebsart', 25 alias: 'widget.betriebsart',
23 store: betriebsartStore, 26 store: betriebsartStore,
24 queryMode: 'local', 27 queryMode: 'local',
25 displayField:'betriebsart', 28 displayField: 'betriebsart',
26 valueField: 'betriebsartId', 29 valueField: 'betriebsartId',
27 emptyText:'Wählen Sie eine Betriebsart', 30 emptyText: 'Wählen Sie eine Betriebsart',
28 31
29 initComponent: function() { 32 initComponent: function() {
30 this.callParent(arguments); 33 this.callParent(arguments);
31 } 34 }
32 }); 35 });

http://lada.wald.intevation.org