Mercurial > lada > lada-client
diff app/view/kommentare/List.js @ 539:31a770c6a9a9
Merge
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 15:42:55 +0100 |
parents | eef1ff9f2bd2 |
children | 99e738c17b81 |
line wrap: on
line diff
--- a/app/view/kommentare/List.js Wed Dec 17 12:10:40 2014 +0100 +++ b/app/view/kommentare/List.js Wed Dec 17 15:42:55 2014 +0100 @@ -29,6 +29,11 @@ probeId: null, initComponent: function() { + var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { + clicksToMoveEditor: 1, + autoCancel: false + }); + this.plugins = [rowEditing]; this.dockedItems = [{ xtype: 'toolbar', dock: 'bottom', @@ -45,14 +50,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); }