diff --git a/calendar/js/app.js b/calendar/js/app.js index 25b52d0c94..67aac36507 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -318,7 +318,7 @@ var CalendarApp = /** @class */ (function (_super) { var date = this.sidebox_et2.getWidgetById('date'); jQuery(window).off('resize.calendar' + date.dom_id); } - this.sidebox_hooked_templates = null; + this.sidebox_hooked_templates = []; egw_unregisterGlobalShortcut(jQuery.ui.keyCode.PAGE_UP, false, false, false); egw_unregisterGlobalShortcut(jQuery.ui.keyCode.PAGE_DOWN, false, false, false); // Stop autorefresh diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 858c054bd8..d3a31c8437 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -198,7 +198,7 @@ class CalendarApp extends EgwApp var date = this.sidebox_et2.getWidgetById('date'); jQuery(window).off('resize.calendar'+date.dom_id); } - this.sidebox_hooked_templates = null; + this.sidebox_hooked_templates = []; egw_unregisterGlobalShortcut(jQuery.ui.keyCode.PAGE_UP, false, false, false); egw_unregisterGlobalShortcut(jQuery.ui.keyCode.PAGE_DOWN, false, false, false);