Mercurial > lada > lada-client
comparison app/view/orte/Create.js @ 149:26ac4c99f8c4
Added Orte.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 01 Jul 2013 17:05:03 +0200 |
parents | 2308094f5a8c |
children | 16ba7e2465fd |
comparison
equal
deleted
inserted
replaced
148:ed7fb4fa32dc | 149:26ac4c99f8c4 |
---|---|
1 Ext.define('Lada.view.orte.Create', { | 1 Ext.define('Lada.view.orte.Create', { |
2 extend: 'Ext.window.Window', | 2 extend: 'Ext.window.Window', |
3 alias: 'widget.ortecreate', | 3 alias: 'widget.ortecreate', |
4 | 4 |
5 title: 'Maske für Orte', | 5 title: 'Maske für Orte', |
6 // Make size of the dialog dependend of the available space. | |
7 // TODO: Handle resizing the browser window. | |
8 width: Ext.getBody().getViewSize().width - 30, | |
9 height: Ext.getBody().getViewSize().height - 30, | |
10 autoShow: true, | 6 autoShow: true, |
11 autoScroll: true, | 7 autoScroll: true, |
12 modal: true, | 8 modal: true, |
13 | 9 |
14 requires: [ | 10 requires: [ |
18 var form = Ext.create('Lada.view.orte.CreateForm'); | 14 var form = Ext.create('Lada.view.orte.CreateForm'); |
19 this.items = [form]; | 15 this.items = [form]; |
20 this.buttons = [ | 16 this.buttons = [ |
21 { | 17 { |
22 text: 'Speichern', | 18 text: 'Speichern', |
23 handler: form.commit, | 19 scope: form, |
24 scope: form | 20 action: 'save' |
25 } | 21 } |
26 ]; | 22 ]; |
27 this.callParent(); | 23 this.callParent(); |
28 } | 24 } |
29 }); | 25 }); |