Fix not working infinite loop check

(thanks, Scrutenizer)
This commit is contained in:
nathangray 2017-02-01 09:17:26 -07:00
parent 7a5ebcc89b
commit f5ec39200b

View File

@ -1062,7 +1062,7 @@ var et2_calendar_timegrid = (function(){ "use strict"; return et2_calendar_view.
}
// Limit it to 14 days to avoid infinite loops in case something is mis-set,
// though the limit is more based on how wide the screen is
while(end >= this.date_helper.date.getTime() && i <= 14)
while(end >= this.date_helper.date.getTime() && i++ <= 14)
return day_list;
},