diff app/view/form/Location.js @ 876:6451d095ff4e

Restored Beschreibung Field
author Dustin Demuth <dustin@intevation.de>
date Fri, 17 Jul 2015 15:18:06 +0200
parents 405810eda690
children a58c006f869c
line wrap: on
line diff
--- a/app/view/form/Location.js	Fri Jul 17 15:10:30 2015 +0200
+++ b/app/view/form/Location.js	Fri Jul 17 15:18:06 2015 +0200
@@ -59,6 +59,13 @@
                 }],
                 items: [{
                     xtype: 'tfield',
+                    maxLength: 100,
+                    name: 'beschreibung',
+                    fieldLabel: 'Beschreibung',
+                    width: 280,
+                    labelWidth: 80
+                }, {
+                    xtype: 'tfield',
                     maxLength: 10,
                     name: 'bezeichnung',
                     fieldLabel: 'Bezeichnung',
@@ -143,6 +150,7 @@
      },
 
     clearMessages: function() {
+        this.down('tfield[name=beschreibung]').clearWarningOrError();
         this.down('tfield[name=bezeichnung]').clearWarningOrError();
         this.down('staat[name=staatId]').clearWarningOrError();
         this.down('verwaltungseinheit[name=verwaltungseinheitId]').clearWarningOrError();
@@ -152,6 +160,7 @@
      },
 
     setReadOnly: function(value) {
+        this.down('tfield[name=beschreibung]').setReadOnly(value);
         this.down('tfield[name=bezeichnung]').setReadOnly(value);
         this.down('staat[name=staatId]').setReadOnly(value);
         this.down('verwaltungseinheit[name=verwaltungseinheitId]').setReadOnly(value);

http://lada.wald.intevation.org