diff app/view/widget/base/Datetime.js @ 926:c75f13578315

Changed 'Solldatum' fields to readonly fields without default value.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 11 Sep 2015 14:18:52 +0200
parents f124d24c8ade
children d6e259e76de6
line wrap: on
line diff
--- a/app/view/widget/base/Datetime.js	Fri Sep 11 12:20:20 2015 +0200
+++ b/app/view/widget/base/Datetime.js	Fri Sep 11 14:18:52 2015 +0200
@@ -25,14 +25,16 @@
     initComponent: function() {
         var dateField = Ext.create('Lada.view.widget.base.DateTimeField', {
             format: this.format || 'd.m.Y H:i',
-            emptyText: 'Wählen Sie einen Zeitpunkt',
+            emptyText: this.emptyText || 'Wählen Sie einen Zeitpunkt',
             fieldLabel: this.fieldLabel,
             labelWidth: this.labelWidth,
             flex: 1,
             name: this.name,
             msgTarget: 'none',
             listeners: this.listeners,
-            period: this.period
+            readOnly: this.readOnly || false,
+            period: this.period,
+            value: this.value
         });
         this.items = [dateField, {
             xtype: 'image',

http://lada.wald.intevation.org