From f574e6577a29f9f525f006fb0225abd518088985 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Aug 2014 16:29:31 +0000 Subject: [PATCH] * Calendar/IE11: fixed calendar and other apps were not working, if doing something in the calendar in IE11 --- calendar/js/app.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index e92de696fa..be25053d13 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -32,14 +32,17 @@ app.classes.calendar = AppJS.extend( */ init: function() { - // call parent - this._super.apply(this, arguments); - // make calendar object available, even if not running in top window, as sidebox does if (window.top !== window) { + // we have to explicitly delete old object or IE11 complains about accessing an already freed script + delete window.top.app.calendar; window.top.app.calendar = this; } + + // call parent + this._super.apply(this, arguments); + //Drag_n_Drop (need to wait for DOM ready to init dnd) jQuery(jQuery.proxy(this.drag_n_drop,this)); }, @@ -577,7 +580,7 @@ app.classes.calendar = AppJS.extend( * @param {string} _duration description * @param {string} _eventFlag Flag to distinguish whether the event is Whole Day, Series, or Single * - S represents Series - * - WD represents Whole Day + * - WD represents Whole Day * - WDS represents Whole Day Series (recurrent whole day event) * - '' represents Single */