Mercurial > lada > lada-client
comparison app/view/proben/CreateForm.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 | 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 * Formular to create a Probe | 10 * Formular to create a Probe |
11 */ | 11 */ |
17 'Lada.view.widgets.Betriebsart', | 17 'Lada.view.widgets.Betriebsart', |
18 'Lada.view.widgets.Testdatensatz', | 18 'Lada.view.widgets.Testdatensatz', |
19 'Lada.view.widgets.Probenart', | 19 'Lada.view.widgets.Probenart', |
20 'Lada.view.widgets.Uwb' | 20 'Lada.view.widgets.Uwb' |
21 ], | 21 ], |
22 | |
22 model: 'Lada.model.Probe', | 23 model: 'Lada.model.Probe', |
24 | |
23 initComponent: function() { | 25 initComponent: function() { |
24 this.items = [{ | 26 this.items = [{ |
25 xtype: 'fieldset', | 27 xtype: 'fieldset', |
26 title: 'Probenangaben', | 28 title: 'Probenangaben', |
27 defaults: { | 29 defaults: { |
28 labelWidth: 150 | 30 labelWidth: 150 |
29 }, | 31 }, |
131 }]; | 133 }]; |
132 this.callParent(arguments); | 134 this.callParent(arguments); |
133 }, | 135 }, |
134 | 136 |
135 buildDescriptors: function() { | 137 buildDescriptors: function() { |
136 var fields = new Array(); | 138 var fields = []; |
137 for ($i=0; $i<12; $i++) { | 139 for (var i = 0; i < 12; i++) { |
138 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; | 140 fields[i] = { |
141 fieldLabel: 'S' + i, name: 's' + i | |
142 }; | |
139 } | 143 } |
140 return fields; | 144 return fields; |
141 } | 145 } |
142 }); | 146 }); |