comparison app/view/messungen/Edit.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 ae8582b4f207
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 * Window to edit a Messung 10 * Window to edit a Messung
11 */ 11 */
20 autoShow: true, 20 autoShow: true,
21 autoScroll: true, 21 autoScroll: true,
22 modal: true, 22 modal: true,
23 23
24 initComponent: function() { 24 initComponent: function() {
25 var form = Ext.create('Lada.view.messungen.EditForm',
26 this.initialConfig);
25 this.buttons = [{ 27 this.buttons = [{
26 text: 'Speichern', 28 text: 'Speichern',
27 scope: form, 29 scope: form,
28 action: 'save' 30 action: 'save'
29 }, { 31 }, {
31 scope: this, 33 scope: this,
32 handler: this.close 34 handler: this.close
33 }]; 35 }];
34 this.width = Ext.getBody().getViewSize().width - 30; 36 this.width = Ext.getBody().getViewSize().width - 30;
35 this.height = Ext.getBody().getViewSize().height - 30; 37 this.height = Ext.getBody().getViewSize().height - 30;
36 var form = Ext.create('Lada.view.messungen.EditForm',
37 this.initialConfig);
38 this.items = [form]; 38 this.items = [form];
39 this.callParent(); 39 this.callParent();
40 } 40 }
41 }); 41 });

http://lada.wald.intevation.org