Do not destroy all global on mailto link clicks
Only call the cleanup code on the unload event, beforeunload is only for asking for confirmation. fixes #7759
This commit is contained in:
parent
36fed03764
commit
16b9c73436
|
@ -106,7 +106,6 @@
|
||||||
|
|
||||||
// Destroy Icinga, clean up and interrupt pending requests on unload
|
// Destroy Icinga, clean up and interrupt pending requests on unload
|
||||||
$( window ).on('unload', { self: this }, this.onUnload);
|
$( window ).on('unload', { self: this }, this.onUnload);
|
||||||
$( window ).on('beforeunload', { self: this }, this.onUnload);
|
|
||||||
|
|
||||||
// We catch scroll events in our containers
|
// We catch scroll events in our containers
|
||||||
$('.container').on('scroll', { self: this }, this.icinga.events.onContainerScroll);
|
$('.container').on('scroll', { self: this }, this.icinga.events.onContainerScroll);
|
||||||
|
@ -559,7 +558,6 @@
|
||||||
$(window).off('resize', this.onWindowResize);
|
$(window).off('resize', this.onWindowResize);
|
||||||
$(window).off('load', this.onLoad);
|
$(window).off('load', this.onLoad);
|
||||||
$(window).off('unload', this.onUnload);
|
$(window).off('unload', this.onUnload);
|
||||||
$(window).off('beforeunload', this.onUnload);
|
|
||||||
$(document).off('scroll', '.container', this.onContainerScroll);
|
$(document).off('scroll', '.container', this.onContainerScroll);
|
||||||
$(document).off('click', 'a', this.linkClicked);
|
$(document).off('click', 'a', this.linkClicked);
|
||||||
$(document).off('click', 'table.action tr[href]', this.rowSelected);
|
$(document).off('click', 'table.action tr[href]', this.rowSelected);
|
||||||
|
|
Loading…
Reference in New Issue