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:
Matthias Jentsch 2015-04-13 16:10:58 +02:00
parent 36fed03764
commit 16b9c73436
1 changed files with 0 additions and 2 deletions

View File

@ -106,7 +106,6 @@
// Destroy Icinga, clean up and interrupt pending requests on unload
$( window ).on('unload', { self: this }, this.onUnload);
$( window ).on('beforeunload', { self: this }, this.onUnload);
// We catch scroll events in our containers
$('.container').on('scroll', { self: this }, this.icinga.events.onContainerScroll);
@ -559,7 +558,6 @@
$(window).off('resize', this.onWindowResize);
$(window).off('load', this.onLoad);
$(window).off('unload', this.onUnload);
$(window).off('beforeunload', this.onUnload);
$(document).off('scroll', '.container', this.onContainerScroll);
$(document).off('click', 'a', this.linkClicked);
$(document).off('click', 'table.action tr[href]', this.rowSelected);