[Lada-commits] [PATCH] Set textfield lengths according to database schema

Wald Commits scm-commit at wald.intevation.org
Thu Feb 2 19:04:12 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1486058642 -3600
# Node ID 9b50bf4c218b1d90cec84a1c5f52f2a73d219087
# Parent  1bcc3a62e9095010c40d07aed84bcd698c7de3d6
Set textfield lengths according to database schema.

diff -r 1bcc3a62e909 -r 9b50bf4c218b app/view/form/Ortserstellung.js
--- a/app/view/form/Ortserstellung.js	Thu Feb 02 16:59:25 2017 +0100
+++ b/app/view/form/Ortserstellung.js	Thu Feb 02 19:04:02 2017 +0100
@@ -85,7 +85,7 @@
             name: 'koordXExtern',
             allowDecimals: true,
             decimalPrecision: 5,
-            maxLength: 10,
+            maxLength: 22,
             listeners: {
                 change: {
                     fn: function() { me.checkCommitEnabled() }
@@ -98,7 +98,7 @@
             name: 'koordYExtern',
             allowDecimals: true,
             decimalPrecision: 5,
-            maxLength: 10,
+            maxLength: 22,
             listeners: {
                 change: {
                     fn: function() { me.checkCommitEnabled() }
@@ -114,17 +114,19 @@
         }, {
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 15,
             name: 'kurztext',
             fieldLabel: i18n.getMsg('orte.kurztext')
         },{
             xtype: 'tfield',
             labelWidth: 125,
+            maxLength: 100,
             fieldLabel: i18n.getMsg('orte.langtext'),
             name: 'langtext'
         },{
             xtype: 'tfield',
             labelWidth: 125,
+            maxLength: 70,
             fieldLabel: i18n.getMsg('orte.berichtstext'),
             name: 'berichtstext'
         }, {
@@ -136,13 +138,13 @@
         }, {
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 1,
             name: 'zone',
             fieldLabel: i18n.getMsg('orte.zone')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 2,
             name: 'sektor',
             fieldLabel: i18n.getMsg('orte.sektor')
         },{
@@ -154,25 +156,25 @@
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'zustaendigkeit',
             fieldLabel: i18n.getMsg('orte.zustaendigkeit')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'mpArt',
             fieldLabel: i18n.getMsg('orte.mpArt')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'nutsCode',
             fieldLabel: i18n.getMsg('orte.nutsCode')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 7,
             name: 'ozId',
             fieldLabel: i18n.getMsg('orte.ozId')
         }];


More information about the Lada-commits mailing list