diff app/view/mkommentare/List.js @ 528:8b4ec83ddca3

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 18:28:58 +0100
parents 8972f008dfb1
children 95bad130be98
line wrap: on
line diff
--- a/app/view/mkommentare/List.js	Tue Dec 16 18:27:59 2014 +0100
+++ b/app/view/mkommentare/List.js	Tue Dec 16 18:28:58 2014 +0100
@@ -27,6 +27,13 @@
     parentId: null,
 
     initComponent: function() {
+        var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
+            clicksToMoveEditor: 1,
+            autoCancel: false
+        });
+        
+        this.plugins = [rowEditing];
+        
         this.dockedItems = [{
             xtype: 'toolbar',
             dock: 'bottom',
@@ -44,14 +51,26 @@
         }];
         this.columns = [{
             header: 'Erzeuger',
-            dataIndex: 'erzeuger'
+            dataIndex: 'erzeuger',
+            editor: {
+                allowBlank: false
+            }
         }, {
             header: 'Datum',
-            dataIndex: 'datum'
+            dataIndex: 'datum',
+            editor: {
+                xtype: 'datefield',
+                allowBlank: false,
+                format: 'd.m.Y',
+                maxValue: Ext.Date.format(new Date(), 'd.m.Y')
+            }
         }, {
             header: 'Text',
             dataIndex: 'text',
-            flex: 1
+            flex: 1,
+            editor: {
+                allowBlank: false
+            }
         }];
         this.callParent(arguments);
     }

http://lada.wald.intevation.org