2010/5/28 Vytautas Čivilis <cvl...@gmail.com>

> Hi.
>
> It would be great, if you'd consider including following code to make
> TextField, that is assigned to date picker, aware of date picker itself.
> So,
> when TextField is clicked, picker calendar would be displayed.
>
> Implement it is very easy:
>
>
> in wicket-date.js:
>
> add some configuration property, like showCalendarOnTextFieldSelect and use
> it next to line:
>
> YAHOO.util.Event.addListener(cfg.icon, "click", showCalendar,
> YAHOO.wicket[cfg.dpJs], true);
>
> //new code below:
>
> if(cfg.showCalendarOnTextFieldSelect) {
>    YAHOO.util.Event.addListener(cfg.widgetId, "click", showCalendar,
> YAHOO.wicket[cfg.dpJs], true);
> }
>
>
> Sorry that I didn't provide the patch, I could do it if you'd seriously
> consider incorporating this feature.
>
> V
>

Please create a JIRA for this with patch attached.

-- 
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to