Replacing parseDate

This commit is contained in:
sean kenny
2014-08-05 14:45:04 +01:00
parent 3334d49f1d
commit e4f5b41937
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ function ResourceEventRenderer() {
revert = false;
var origDate = cellToDate(0, origCell.col);
var date = cellToDate(0, cell.col);
dayDelta = dayDiff(date, origDate);
dayDelta = date.diff(origDate, 'days');
if (!cell.row) {
// on full-days
renderDayOverlay(
+3 -3
View File
@@ -145,15 +145,15 @@ function ResourceView(element, calendar, viewName) {
}
}
function updateOptions() {
tm = opt('theme') ? 'ui' : 'fc';
rtl = opt('isRTL');
minMinute = parseTime(opt('minTime'));
maxMinute = parseTime(opt('maxTime'));
colFormat = opt('columnFormat');
minMinute = moment.duration(opt('minTime'));
maxMinute = moment.duration(opt('maxTime'));
// week # options. (TODO: bad, logic also in other views)
showWeekNumbers = opt('weekNumbers');
weekNumberTitle = opt('weekNumberTitle');