Can’t get JCalendar to select a specific date when opening

January 2nd 2008 07:22 pm

There is an error in calendar-setup.js that prevents the setting of an initial date for the calendar. Go to line 159 and replace the code:

if (dateEl) params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);

with:

if (dateEl && (dateEl.value || dateEl.innerHTML)) params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);

Posted by bradym under JavaScript |

Comments RSS

Leave a Reply