bmoeskau/Extensible

date is undefined on empty month view (no enevts)

vela1606 opened this issue · 2 comments

"date is undefined" error when you click over month-empty-day div (just bellow the day) in the month view without events recorded

easy fix! see... https://github.com/vela1606/MitosEHR-Official/blob/master/lib/extensible-1.5.1/src/calendar/util/WeekEventRenderer.js

basically move up currentDateString = Ext.Date.format(currentDate, 'Ymd');

to line 114 ( outside the second for loop )

BTW... here is the open source app I am using your calendar in...

http://demo.mitosehr.org/
demo / demo

Thanks for creating this amazing product and making it available for other ExtJs open source projects :)

You Rock!

Wow, I'm surprised that I missed that somehow... Thanks for the report and for the debugging. The fix is committed.

Cool, nice to see the calendar in use, thanks for the link! Let me know if you run into anything else.