* Calendar/IE11: fixed calendar and other apps were not working, if doing something in the calendar in IE11

This commit is contained in:
Ralf Becker 2014-08-26 16:29:31 +00:00
parent 987168a1cb
commit f574e6577a

View File

@ -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
*/