annotate app/view/orte/Create.js @ 367:cdef828f8049

Set autoload to true
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 16 Aug 2013 11:10:16 +0200
parents 1536fb5c81b7
children f9bb1ecf6462
rev   line source
347
1536fb5c81b7 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
1 /*
1536fb5c81b7 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
2 * Window to create and edit a Ort
1536fb5c81b7 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
3 */
109
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.view.orte.Create', {
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 extend: 'Ext.window.Window',
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 alias: 'widget.ortecreate',
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 title: 'Maske für Orte',
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 autoShow: true,
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 autoScroll: true,
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 modal: true,
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 requires: [
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 'Lada.view.orte.CreateForm'
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 ],
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 initComponent: function() {
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 this.buttons = [
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 {
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 text: 'Speichern',
149
26ac4c99f8c4 Added Orte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 109
diff changeset
20 scope: form,
26ac4c99f8c4 Added Orte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 109
diff changeset
21 action: 'save'
271
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
22 },
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
23 {
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
24 text: 'Abbrechen',
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
25 scope: this,
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
26 handler: this.close,
109
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 }
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 ];
271
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
29 var form = Ext.create('Lada.view.orte.CreateForm', this.initialConfig);
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
30 this.items = [form];
109
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 this.callParent();
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 }
2308094f5a8c Added forms to add Orte
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 });

http://lada.wald.intevation.org