Skip to content

Commit

Permalink
Do not destroy all global on mailto link clicks
Browse files Browse the repository at this point in the history
Only call the cleanup code on the unload event, beforeunload is only for asking for confirmation.

fixes #7759
  • Loading branch information
majentsch committed Apr 13, 2015
1 parent 36fed03 commit 16b9c73
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions public/js/icinga/events.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 16b9c73

Please sign in to comment.