Mercurial > lada > lada-client
diff app/view/widget/base/Datetime.js @ 650:67963fcb7739
Removed old DateTimeField and replaced them with the new one.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Mar 2015 13:55:14 +0100 |
parents | 291ac2e2bcf5 |
children | f124d24c8ade |
line wrap: on
line diff
--- a/app/view/widget/base/Datetime.js Wed Mar 18 13:54:18 2015 +0100 +++ b/app/view/widget/base/Datetime.js Wed Mar 18 13:55:14 2015 +0100 @@ -13,17 +13,18 @@ extend: 'Ext.panel.Panel', alias: 'widget.datetime', requires: [ - 'Ext.ux.form.DateTimeField' + 'Lada.view.widget.base.DateTimeField' ], layout: 'hbox', border: 0, + margin: '0, 0, 5, 0', + initComponent: function() { - this.margin = this.fieldMargin; - var dateField = Ext.create('Ext.ux.form.DateTimeField', { - format: 'd.m.Y', + var dateField = Ext.create('Lada.view.widget.base.DateTimeField', { + format: this.format || 'd.m.Y H:i', emptyText: 'Wählen Sie einen Zeitpunkt', fieldLabel: this.fieldLabel, labelWidth: this.labelWidth,