From 6e70753b77e6ff08f8b9003c66ec00731933948c Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 17:13:51 +0200 Subject: [PATCH] try bugfix --- teleforma/templates/teleforma/seminar_detail.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 19421432..1192e4cd 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -76,13 +76,14 @@ $(window).ready(function(){ return false; } }); + }); - $(document).unload(function(){ - f.ping('{{seminar.id}}','{{user.username}}'); - }); - +$(window).unload(function(){ + var f = seminarUtils; + f.ping('{{seminar.id}}','{{user.username}}'); }); + {% endif %} -- 2.39.5