From 5e8f5cf544a1c91df088c460737bc5e3d94937d3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 16:51:38 +0200 Subject: [PATCH] try bugfix --- teleforma/templates/teleforma/seminar_detail.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index cbe4ef6d..b48f950a 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -65,9 +65,6 @@ $(window).ready(function(){ var f = seminarUtils; f.ping('{{seminar.id}}','{{user.username}}'); - $(window).unload(function(){ - f.ping('{{seminar.id}}','{{user.username}}'); - }); var p = $('#publish'); p.unbind('click').click(function() { @@ -84,6 +81,9 @@ $(window).ready(function(){ }); + $(window).unload(function(){ + f.ping('{{seminar.id}}','{{user.username}}'); + }); {% endif %} -- 2.39.5