Mercurial > lada > lada-client
comparison app/view/kommentare/Create.js @ 111:6273b73b4b27
Replaced Logic for Kommentare. Use copied code form Orte.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 14:11:35 +0200 |
parents | |
children | 7b1140bd8b3d |
comparison
equal
deleted
inserted
replaced
110:c4f97a5a9939 | 111:6273b73b4b27 |
---|---|
1 Ext.define('Lada.view.kommentare.Create', { | |
2 extend: 'Ext.window.Window', | |
3 alias: 'widget.kommentarecreate', | |
4 | |
5 title: 'Maske für Kommentare', | |
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, | |
11 autoScroll: true, | |
12 modal: true, | |
13 | |
14 requires: [ | |
15 'Lada.view.kommentare.CreateForm' | |
16 ], | |
17 initComponent: function() { | |
18 var form = Ext.create('Lada.view.kommentare.CreateForm'); | |
19 this.items = [form]; | |
20 this.buttons = [ | |
21 { | |
22 text: 'Speichern', | |
23 handler: form.commit, | |
24 scope: form | |
25 } | |
26 ]; | |
27 this.callParent(); | |
28 } | |
29 }); |