Calendar: Fix sidebox_hooked_templates was not cleared correctly

This commit is contained in:
nathangray 2020-07-20 14:54:15 -06:00
parent bd6b20bae8
commit 22c67c6801
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -198,7 +198,7 @@ class CalendarApp extends EgwApp
var date = <et2_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);