Skip to content

Commit

Permalink
small change to insure objects typed as dates
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrubbsian committed Aug 13, 2010
1 parent 5481584 commit 4d9258d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.ganttView.js
Expand Up @@ -43,6 +43,11 @@ behavior: {
onResize: null
}
};

// Insure that we have dates and not strings otherwise date.js can't operate
options.start = Date.parse(options.start);
options.end = Date.parse(options.end);

var opts = jQuery.extend(true, defaults, options);
var months = Chart.getMonths(opts.start, opts.end);

Expand Down

0 comments on commit 4d9258d

Please sign in to comment.