Mercurial > lada > lada-client
annotate app/view/mkommentare/Create.js @ 296:529da633b8e3
Inherit from Base controller
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:00:07 +0200 |
parents | 11f8a2c1b610 |
children | b2dc95820b70 |
rev | line source |
---|---|
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.mkommentare.Create', { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.window.Window', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 alias: 'widget.mkommentarecreate', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 title: 'Maske für Messungskommentare', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 // Make size of the dialog dependend of the available space. |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 // TODO: Handle resizing the browser window. |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 autoShow: true, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 autoScroll: true, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 modal: true, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 requires: [ |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 'Lada.view.mkommentare.CreateForm' |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 ], |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 initComponent: function() { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 this.buttons = [ |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 text: 'Speichern', |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 scope: form, |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 action: 'save' |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
21 }, |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
22 { |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
23 text: 'Abbrechen', |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
24 scope: this, |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
25 handler: this.close, |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 } |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 ]; |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
28 var form = Ext.create('Lada.view.mkommentare.CreateForm', this.initialConfig); |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
207
diff
changeset
|
29 this.items = [form]; |
207
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 this.callParent(); |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 } |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 }); |