[TYPO3-project-4-3] Datepicker for TCEFORMS

Steffen Kamper info at sk-typo3.de
Sun Aug 16 23:02:17 CEST 2009


Hi Masi,

Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> Hi,
>>
>> i started to use the ExtJS Datepicker for Datefields. Precondition is
>> #11627 v2 which is included in this diff.
> 
> 
> Why don't you move the complete code of convertDateFiledsToDatePicker()
> in the Ext.onready()? You already create an anonymous function in the
> call to Ext.onready(), so there is no need to create a named one in the
> *global* namespace.
>

necause this is the style most Ext application are wrote. It's like the 
php classes. Whenever you need such class, bring it in your namespace.

Mostly all Extensions (And the TCEFORM Date picker is one) have class 
constructs (or singletons), so Ext.onReady only needs to call the 
constructor.

> And I'm wondering why there is no support for date formats with slashes.
> The tricky part would be if we want to allow m/d/Y and d/m/Y depending
> on the USdate config setting. But I guess that the former is more
> widespread so we can do without the switch.
> 

this is a thing for rewriting the js_eval. All the dte stuff is 
hardcoded there and dates are exploded manually. This can change now as 
we have the extended Date class coming with ExtJS, so there is a chance 
to get this all configurable.

vg Steffen


More information about the TYPO3-project-4-3 mailing list