changeset 664:6fe3cef53e74

Field Validity in MKommentar Grid
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:25:38 +0100
parents 1c5a4b419149
children 4a9bd2664da6
files app/view/grid/MKommentar.js
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
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