From 22c67c6801a02524a5224a4afe8eb7c32b70d1cf Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 20 Jul 2020 14:54:15 -0600 Subject: [PATCH] Calendar: Fix sidebox_hooked_templates was not cleared correctly --- calendar/js/app.js | 2 +- calendar/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);