|
|
@@ -75,7 +75,7 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
|
|
|
|
|
|
|
|
|
rangeUpdated: function() {
|
|
|
- var dateProfile = this.view.get('dateProfile');
|
|
|
+ var dateProfile = this.get('dateProfile');
|
|
|
|
|
|
this.updateDayTable();
|
|
|
|
|
|
@@ -223,7 +223,7 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
|
|
|
var calendar = view.calendar;
|
|
|
var theme = calendar.theme;
|
|
|
var isRTL = this.isRTL;
|
|
|
- var dateProfile = view.get('dateProfile');
|
|
|
+ var dateProfile = this.get('dateProfile');
|
|
|
var html = '';
|
|
|
var slotTime = moment.duration(+dateProfile.minTime); // wish there was .clone() for durations
|
|
|
var slotIterator = moment.duration(0);
|
|
|
@@ -423,7 +423,7 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
|
|
|
// Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).
|
|
|
computeTimeTop: function(time) {
|
|
|
var len = this.slatEls.length;
|
|
|
- var dateProfile = this.view.get('dateProfile');
|
|
|
+ var dateProfile = this.get('dateProfile');
|
|
|
var slatCoverage = (time - dateProfile.minTime) / this.slotDuration; // floating-point value of # of slots covered
|
|
|
var slatIndex;
|
|
|
var slatRemainder;
|
|
|
@@ -557,7 +557,7 @@ var TimeGrid = FC.TimeGrid = InteractiveDateComponent.extend(StandardInteraction
|
|
|
|
|
|
// Given a row number of the grid, representing a "snap", returns a time (Duration) from its start-of-day
|
|
|
computeSnapTime: function(snapIndex) {
|
|
|
- return moment.duration(this.view.get('dateProfile').minTime + this.snapDuration * snapIndex);
|
|
|
+ return moment.duration(this.get('dateProfile').minTime + this.snapDuration * snapIndex);
|
|
|
},
|
|
|
|
|
|
|