themouette/jquery-week-calendar

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

Opened this issue · 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!