diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/kommentare/Create.js	Wed Jun 19 14:11:35 2013 +0200
@@ -0,0 +1,29 @@
+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();
+    }
+});

http://lada.wald.intevation.org