Mercurial > lada > lada-client
comparison app/view/orte/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 Ort | 10 * Window to create and edit a Ort |
11 */ | 11 */ |
12 Ext.define('Lada.view.orte.Create', { | 12 Ext.define('Lada.view.orte.Create', { |
13 extend: 'Ext.window.Window', | 13 extend: 'Ext.window.Window', |
14 alias: 'widget.ortecreate', | 14 alias: 'widget.ortecreate', |
15 requires: [ | |
16 'Lada.view.orte.CreateForm' | |
17 ], | |
15 | 18 |
16 title: 'Maske für Orte', | 19 title: 'Maske für Orte', |
17 autoShow: true, | 20 autoShow: true, |
18 autoScroll: true, | 21 autoScroll: true, |
19 modal: true, | 22 modal: true, |
20 | 23 |
21 requires: [ | |
22 'Lada.view.orte.CreateForm' | |
23 ], | |
24 initComponent: function() { | 24 initComponent: function() { |
25 var form = Ext.create('Lada.view.orte.CreateForm', | |
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 }, { |
30 text: 'Abbrechen', | 32 text: 'Abbrechen', |
31 scope: this, | 33 scope: this, |
32 handler: this.close | 34 handler: this.close |
33 }]; | 35 }]; |
34 var form = Ext.create('Lada.view.orte.CreateForm', | |
35 this.initialConfig); | |
36 this.items = [form]; | 36 this.items = [form]; |
37 this.callParent(); | 37 this.callParent(); |
38 } | 38 } |
39 }); | 39 }); |