From 7a8baa83c79f09446d849cdf6b91f430beacd2b0 Mon Sep 17 00:00:00 2001 From: simplefl Date: Thu, 16 Apr 2015 19:38:26 +0200 Subject: [PATCH] Remove unloading hook from gather because its triggered to often. --- app/views/gathers/show.html.erb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/views/gathers/show.html.erb b/app/views/gathers/show.html.erb index 275cad9..2306858 100644 --- a/app/views/gathers/show.html.erb +++ b/app/views/gathers/show.html.erb @@ -58,12 +58,6 @@ } }); - $(window).bind('beforeunload', function(e) { - if (gatherer_id > 0 && leave_confirm) { - return "You will be removed from the Gather if you leave this page."; - } - }); - $(window).bind('unload', function() { if (gatherer_id > 0 && leave_confirm) { updateGathererStatus('leaving');