diff app/view/grid/MKommentar.js @ 664:6fe3cef53e74

Field Validity in MKommentar Grid
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:25:38 +0100
parents 13e5473d1af5
children 612f4f933083
line wrap: on
line diff
--- a/app/view/grid/MKommentar.js	Thu Mar 19 11:23:24 2015 +0100
+++ b/app/view/grid/MKommentar.js	Thu Mar 19 11:25:38 2015 +0100
@@ -56,25 +56,28 @@
                 store: Ext.data.StoreManager.get('messstellen'),
                 displayField: 'messStelle',
                 valueField: 'id',
-                allowBlank: false
+                allowBlank: false,
+                editable: false,
             }
         }, {
             header: 'Datum',
             dataIndex: 'datum',
             xtype: 'datecolumn',
-            format: 'd.m.Y H:i',
+            format: 'd.m.Y',
             editor: {
                 xtype: 'datefield',
                 allowBlank: false,
-                format: 'd.m.Y H:i',
-                maxValue: Ext.Date.format(new Date(), 'd.m.Y H:i')
+                format: 'd.m.Y',
+                maxValue: Ext.Date.format(new Date(), 'd.m.Y')
             }
         }, {
             header: 'Text',
             dataIndex: 'text',
             flex: 1,
             editor: {
-                allowBlank: false
+                allowBlank: false,
+                maxLength: 1000,
+                enforceMaxLength: true
             }
         }];
         this.initData();

http://lada.wald.intevation.org