jquery-week-calendar icon indicating copy to clipboard operation
jquery-week-calendar copied to clipboard

Header problems when title is empty, 3:30 pm: undefined

Open dornab opened this issue 12 years ago • 0 comments

In eventHeader function, if calEvent.title is not assigned, the short events will have a buggy header, e.g. would be "3:30 pm: undefined".

      var displayTitleWithTime = calEvent.end.getTime() - calEvent.start.getTime() <= (one_hour / options.timeslotsPerHour);
      if (displayTitleWithTime) {
        return calendar.weekCalendar('formatTime', calEvent.start) +  ': ' + calEvent.title;
      }

I am removing the calEvent.title from the above code for my project.

Thanks!

dornab avatar Nov 11 '12 19:11 dornab