From 13ca7b484e124d6b4a6d9c7d28b8f459515267a7 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 18:33:32 +0200 Subject: [PATCH] try bugfix --- teleforma/templates/teleforma/seminar_detail.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index c4a728e1..f3a59b35 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -64,10 +64,8 @@ var seminarUtils = { } -var f = seminarUtils; - $(window).ready(function(){ - + var f = seminarUtils; f.load('{{seminar.id}}','{{user.username}}'); var p = $('#publish'); @@ -85,7 +83,8 @@ $(window).ready(function(){ }); -$(window).bind('beforeunload', function(){ +$(window).bind('unload', function(){ + var f = seminarUtils; f.unload('{{seminar.id}}','{{user.username}}'); }); -- 2.39.5