//this is a global variable to have only one instance of the calendar
var calendar = null;
//@element => is the where the calender will be rendered by Scal.
//@input => is the where the date will be updated.
//@container => is the for dragging.
//@source => is the img/button which raises up the calender, the script will locate the calendar over this control.
function showCalendar(element, input, container, source)
{
...
...
var date = new Date($F(input));
calendar.setCurrentDate(isNaN(date) ? new Date() : date);
...
};
The conversion of the input to date is not correct.
Please take into account the format fo the input and convert to date. Otherwise, the floating date can display only the current date
GMSK
Thanks for the fix. There
Thanks for the fix. There seems to be a number of issues with the floating calendar demo. I may take it offline as it is a user-contribution and not part of the scal release.
No. No. No. The floating
No. No. No.
The floating calendar is a very useful widget. The issues are meaningless and easy to fix. It is a rare free multi-datepicker in the web.
Well, if you feel that
Well, if you feel that strongly about it... :)
Post new comment