annotate app/view/proben/Create.js @ 246:c5d7fae5997a

Change logic how to show and hide the search filters. Now we iterate over the list of defined filters for the selected query and show all matching filters. If no filter is configured at all the whole filter widget is hidden.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 14:18:11 +0200
parents c05fda928b82
children 0d6552bb28ea
rev   line source
65
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.proben.Create', {
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.window.Window',
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 alias: 'widget.probencreate',
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 title: 'Maske für §3-Proben',
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 // Make size of the dialog dependend of the available space.
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 // TODO: Handle resizing the browser window.
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 width: Ext.getBody().getViewSize().width - 30,
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 height: Ext.getBody().getViewSize().height - 30,
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 autoShow: true,
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 autoScroll: true,
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 modal: true,
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 initComponent: function() {
68
e54cb2f3566e Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
14 var form = Ext.create('Lada.view.proben.CreateForm');
e54cb2f3566e Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
15 this.items = [form];
65
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 this.buttons = [
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 {
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 text: 'Speichern',
68
e54cb2f3566e Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
19 handler: form.commit,
e54cb2f3566e Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
20 scope: form
65
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 }
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 ];
68
e54cb2f3566e Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
23 this.callParent();
65
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 }
9e2e09e819fd Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 });

http://lada.wald.intevation.org