[Lada-commits] [PATCH 7 of 8] Field Validity in MKommentar Grid

Wald Commits scm-commit at wald.intevation.org
Thu Mar 19 11:17:55 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1426760738 -3600
# Node ID 6fe3cef53e7491c2c70d1ac70e3ab4102e444508
# Parent  1c5a4b4191498b53c09a137b13f934b573659b6e
Field Validity in MKommentar Grid

diff -r 1c5a4b419149 -r 6fe3cef53e74 app/view/grid/MKommentar.js
--- 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();


More information about the Lada-commits mailing list