* 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:12 +00:00
parent 0538a59ea1
commit ff37c7c3f4

View File

@ -32,14 +32,17 @@ app.classes.calendar = AppJS.extend(
*/ */
init: function() init: function()
{ {
// call parent
this._super.apply(this, arguments);
// make calendar object available, even if not running in top window, as sidebox does // make calendar object available, even if not running in top window, as sidebox does
if (window.top !== window) 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; window.top.app.calendar = this;
} }
// call parent
this._super.apply(this, arguments);
//Drag_n_Drop (need to wait for DOM ready to init dnd) //Drag_n_Drop (need to wait for DOM ready to init dnd)
jQuery(jQuery.proxy(this.drag_n_drop,this)); jQuery(jQuery.proxy(this.drag_n_drop,this));
}, },