SwarmOnline / Ext.ux.TouchCalendar

Sencha Touch Calendar component
113 stars 47 forks source link

Day view template bugfix: Uncaught TypeError: Cannot call method 'getTime in TouchCalendarView.js:591 #14

Closed dizpers closed 11 years ago

dizpers commented 11 years ago

In short: datetime attribute was contained in not proper <td> - that cause an error Uncaught TypeError: Cannot call method 'getTime' of undefined on TouchCalendarView.js:591

So, the maing problem was in onTimeSlotTap: var newDate = this.getCellDate(target);. After this line value of newDate was undefined. getCellDate function look for the date in datetime attribute. But this attribute contains not in proper td tag.

Stuart98 commented 11 years ago

Hi,

Thanks very much for the pull request and for finding the bug. I didn't want to completely merge because of all the extra formatting changes but I have manually merged it and credited you with the fix (https://github.com/SwarmOnline/Ext.ux.TouchCalendar/commit/1af078b9ff655fb580efffbd2a788c32a53a4a68).

Thanks again! Stuart