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

http://lada.wald.intevation.org