Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
293 stars 243 forks source link

endHalfDay won't work when the range is only a single day #141

Open psnagle opened 7 years ago

psnagle commented 7 years ago

When only a single day is selected (so startDate and endDate are the same), endHalfDay won't work due to the line ...

else if(events[events.length - 1].endDate.getTime() == currentTime)

Remove the else and I think it works.