comparison app/view/proben/EditForm.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 369917727c86
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 * Formular to edit a Probe 10 * Formular to edit a Probe
11 */ 11 */
12 Ext.define('Lada.view.proben.EditForm', { 12 Ext.define('Lada.view.proben.EditForm', {
13 extend: 'Lada.view.widgets.LadaForm', 13 extend: 'Lada.view.widgets.LadaForm',
14 alias: 'widget.probeneditform',
14 requires: [ 15 requires: [
15 'Lada.view.widgets.Datenbasis', 16 'Lada.view.widgets.Datenbasis',
16 'Lada.view.widgets.Netzbetreiber', 17 'Lada.view.widgets.Netzbetreiber',
17 'Lada.view.widgets.Betriebsart', 18 'Lada.view.widgets.Betriebsart',
18 'Lada.view.widgets.Testdatensatz', 19 'Lada.view.widgets.Testdatensatz',
21 'Lada.view.zusatzwerte.List', 22 'Lada.view.zusatzwerte.List',
22 'Lada.view.kommentare.List', 23 'Lada.view.kommentare.List',
23 'Lada.view.orte.List', 24 'Lada.view.orte.List',
24 'Lada.view.messungen.List' 25 'Lada.view.messungen.List'
25 ], 26 ],
27
26 model: 'Lada.model.Probe', 28 model: 'Lada.model.Probe',
27 alias: 'widget.probeneditform',
28 29
29 initComponent: function() { 30 initComponent: function() {
30 this.items = [{ 31 this.items = [{
31 xtype: 'fieldset', 32 xtype: 'fieldset',
32 title: 'Probenangaben', 33 title: 'Probenangaben',
33 defaults: { 34 defaults: {
34 labelWidth: 150 35 labelWidth: 150
35 }, 36 },
181 }]; 182 }];
182 this.callParent(arguments); 183 this.callParent(arguments);
183 }, 184 },
184 185
185 buildDescriptors: function() { 186 buildDescriptors: function() {
186 var fields = new Array(); 187 var fields = [];
187 for ($i=0; $i<12; $i++) { 188 for (var i = 0; i < 12; i++) {
188 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; 189 fields[i] = {
190 fieldLabel: 'S' + i, name: 's' + i
191 };
189 } 192 }
190 return fields; 193 return fields;
191 } 194 }
192 }); 195 });

http://lada.wald.intevation.org