mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
Replacing parseDate
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user