Deal with planner days set as string instead of int

This commit is contained in:
Nathan Gray 2015-11-25 16:05:36 +00:00
parent ac16d1fb95
commit 85135e6790

View File

@ -3242,6 +3242,10 @@ jQuery.extend(app.classes.calendar,{
},
end_date: function(state) {
var d = app.calendar.View.end_date.call(this, state);
if(state.planner_days)
{
state.planner_days = parseInt(state.planner_days);
}
if(state.sortby && state.sortby === 'month')
{
d.setUTCDate(0);