comparison app/view/proben/Create.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 * Window to create a Probe 10 * Window to create a Probe
11 */ 11 */
17 // Make size of the dialog dependend of the available space. 17 // Make size of the dialog dependend of the available space.
18 // TODO: Handle resizing the browser window. 18 // TODO: Handle resizing the browser window.
19 autoShow: true, 19 autoShow: true,
20 autoScroll: true, 20 autoScroll: true,
21 modal: true, 21 modal: true,
22
22 initComponent: function() { 23 initComponent: function() {
23 this.buttons = [{ 24 this.buttons = [{
24 text: 'Speichern', 25 text: 'Speichern',
25 action: 'save' 26 action: 'save'
26 }, { 27 }, {
30 }]; 31 }];
31 this.width = Ext.getBody().getViewSize().width - 30; 32 this.width = Ext.getBody().getViewSize().width - 30;
32 this.height = Ext.getBody().getViewSize().height - 30; 33 this.height = Ext.getBody().getViewSize().height - 30;
33 var form = Ext.create('Lada.view.proben.CreateForm'); 34 var form = Ext.create('Lada.view.proben.CreateForm');
34 this.items = [form]; 35 this.items = [form];
35 this.callParent(); 36 this.callParent(arguments);
36 } 37 }
37 }); 38 });

http://lada.wald.intevation.org