summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js')
-rwxr-xr-xmodules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
index e84b9057..3d2c03af 100755
--- a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
+++ b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
@@ -43,7 +43,7 @@ function MyDate() {
return {
options: {
- date: MyDate,
+ date: MyDate(),
timeFormat: null,
dateFormat: 'M d, Y',
alwaysDisplayTimeMinutes: true,
@@ -331,7 +331,7 @@ function MyDate() {
this._resizeCalendar();
},
scrollToHour:function(){
- this._scrollToHour(this._getCurrentScrollHour(), false);
+ this._scrollToHour(MyDate().getHours(), false);
},
/*
* Clear all events currently loaded into the calendar
@@ -2515,6 +2515,7 @@ function MyDate() {
var freebusys = [freebusys];
}
$.each(freebusys, function(i, freebusy) {
+ if (!freebusy) return;
freeBusyToReturn.push(new FreeBusy(self._cleanFreeBusy(freebusy)));
});
return freeBusyToReturn;