annotate app/view/messwerte/Create.js @ 413:e1af66012ef0 0.6

Reverse displayFields Array before configuring the columns of the result list. Now the displayed columns are in the same order as defined in the query configuration file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:26:09 +0200
parents c3c64920b740
children f9bb1ecf6462
rev   line source
345
c3c64920b740 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
1 /*
c3c64920b740 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
2 * Window to create and edit a Messwert
c3c64920b740 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 271
diff changeset
3 */
186
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.view.messwerte.Create', {
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 extend: 'Ext.window.Window',
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 alias: 'widget.messwertecreate',
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 title: 'Maske für Messwerte',
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 autoShow: true,
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 autoScroll: true,
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 modal: true,
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 initComponent: function() {
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 this.buttons = [
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 {
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 text: 'Speichern',
191
46cc69277b8e Removed unneeded code and set action attribute on button.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 186
diff changeset
17 scope: form,
46cc69277b8e Removed unneeded code and set action attribute on button.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 186
diff changeset
18 action: 'save'
271
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
19 },
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
20 {
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
21 text: 'Abbrechen',
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
22 scope: this,
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 270
diff changeset
23 handler: this.close,
186
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 }
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 ];
270
0d6552bb28ea Add cancel Button to the editproben window and only show save button if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 191
diff changeset
26 var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig);
0d6552bb28ea Add cancel Button to the editproben window and only show save button if the
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 191
diff changeset
27 this.items = [form];
186
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 this.callParent();
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 }
956555e20e02 Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 });

http://lada.wald.intevation.org