Mercurial > lada > lada-client
annotate app/view/mkommentare/Create.js @ 266:f005f43007b5
Fixed issue34. Erzeuger is now a selection field for messstelle.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 29 Jul 2013 14:44:17 +0200 |
parents | 62e116cd3e3b |
children | 11f8a2c1b610 |
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 var form = Ext.create('Lada.view.mkommentare.CreateForm', this.initialConfig); |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 this.items = [form]; |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 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
|
19 { |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 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
|
21 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
|
22 action: 'save' |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 } |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 ]; |
62e116cd3e3b
Inheritance of Mkommentare from Kommentare does not work as expected. So write
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 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
|
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 }); |