diff options
author | Michael Scherle | 2017-03-20 19:47:17 +0100 |
---|---|---|
committer | Michael Scherle | 2017-03-20 19:47:17 +0100 |
commit | f451d4ffc6b3b02ccc3ee3ec111b84b3c110e0d9 (patch) | |
tree | 01ec59151a9d70c1fc0f930200de158a9c0e8add /modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js | |
parent | API: Fixed a Bug where every server iteration the result array was initialized. (diff) | |
download | slx-admin-f451d4ffc6b3b02ccc3ee3ec111b84b3c110e0d9.tar.gz slx-admin-f451d4ffc6b3b02ccc3ee3ec111b84b3c110e0d9.tar.xz slx-admin-f451d4ffc6b3b02ccc3ee3ec111b84b3c110e0d9.zip |
frontend: -calendar scrolls to actual time, if space is to small to show full calendar, -changed querymethods to query dependend on each rooms update time
Diffstat (limited to 'modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js')
-rwxr-xr-x | modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js | 5 |
1 files changed, 5 insertions, 0 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 4015503b..808939f3 100755 --- a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js +++ b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js @@ -323,6 +323,9 @@ function MyDate() { this._loadCalEvents(this.element.data('startDate')); }, + resizeCalendar:function(){ + this._resizeCalendar(); + }, /* * Clear all events currently loaded into the calendar */ @@ -1266,10 +1269,12 @@ function MyDate() { * Draws a thin line which indicates the current time. */ _drawCurrentHourLine: function() { + var self = this; var d = new MyDate(), options = this.options, businessHours = options.businessHours; + self._scrollToHour(d.getHours() ,false); // first, we remove the old hourline if it exists $('.wc-hourline', this.element).remove(); |