Paul-DS / bootstrap-year-calendar

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

_renderDataSource monthData incorrect #159

Open PetarDDobrev opened 7 years ago

PetarDDobrev commented 7 years ago

In "_renderDataSource" function the if statement for pushing month data is incorrect. if (!(_this.options.dataSource[i].startDate >= lastDate) || (_this.options.dataSource[i].endDate < firstDate))

"!" should be for the result for the both checks, not only for the first one:

if (!(_this.options.dataSource[i].startDate >= lastDate || _this.options.dataSource[i].endDate < firstDate))