Mercurial > lada > lada-client
view app/view/kommentare/Create.js @ 117:5ef91e9ac7b1
Clean up code and improve comments.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 10:08:19 +0200 |
parents | 6273b73b4b27 |
children | 7b1140bd8b3d |
line wrap: on
line source
Ext.define('Lada.view.kommentare.Create', { extend: 'Ext.window.Window', alias: 'widget.kommentarecreate', title: 'Maske für Kommentare', // Make size of the dialog dependend of the available space. // TODO: Handle resizing the browser window. width: Ext.getBody().getViewSize().width - 30, height: Ext.getBody().getViewSize().height - 30, autoShow: true, autoScroll: true, modal: true, requires: [ 'Lada.view.kommentare.CreateForm' ], initComponent: function() { var form = Ext.create('Lada.view.kommentare.CreateForm'); this.items = [form]; this.buttons = [ { text: 'Speichern', handler: form.commit, scope: form } ]; this.callParent(); } });