Branch 'roundcubemail-plugins-kolab-format2-horde5' - plugins/calendar
Thomas Brüderli
bruederli at kolabsys.com
Wed Mar 6 12:56:36 CET 2013
plugins/calendar/calendar_ui.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 2247e46163c888a5539883afb360a5974c495892
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Wed Mar 6 12:56:15 2013 +0100
Avoid javascript errors while free/busy data isn't fully loaded
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index b721b5b..583f831 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -1234,6 +1234,10 @@ function rcube_calendar_ui(settings)
// attempt to find a time slot where all attemdees are available
var freebusy_find_slot = function(dir)
{
+ // exit if free-busy data isn't available yet
+ if (!freebusy_data || !freebusy_data.start)
+ return false;
+
var event = me.selected_event,
eventstart = clone_date(event.start, event.allDay ? 1 : 0).getTime(), // calculate with integers
eventend = clone_date(event.end, event.allDay ? 2 : 0).getTime(),
More information about the commits
mailing list