Repository: wicket Updated Branches: refs/heads/wicket-6.x b32e412c4 -> f17820482
WICKET-5822 use unload instead of beforeunload, so timers are not cleared when browser downloads a file Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/f1782048 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/f1782048 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/f1782048 Branch: refs/heads/wicket-6.x Commit: f17820482841d1440db2c2229d5736e8daec3351 Parents: b32e412 Author: Sven Meier <[email protected]> Authored: Fri Jan 30 11:36:00 2015 +0100 Committer: Sven Meier <[email protected]> Committed: Fri Jan 30 11:36:00 2015 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/f1782048/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js index 2dc6192..82467ed 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js @@ -2827,7 +2827,7 @@ /** * Clear any scheduled Ajax timers when leaving the current page */ - Wicket.Event.add(window, "beforeunload", function() { + Wicket.Event.add(window, "unload", function() { var WTH = Wicket.TimerHandles; if (WTH) { for (var th in WTH) {
