From ce3369fe23c71e9a28d7b02236dda6d63464d575 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 18:49:28 +0200 Subject: [PATCH] try bugfix --- teleforma/templates/teleforma/seminar_detail.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index a2a68ee3..825b8394 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -55,11 +55,11 @@ var seminarUtils = { }, load : function(id, username){ - json([id, username],'teleforma.seminar_load', function(){return '';}); + json([id, username],'teleforma.seminar_load', function(){return false;}); }, unload : function(id, username){ - json([id, username],'teleforma.seminar_unload',function(){return '';}); + json([id, username],'teleforma.seminar_unload',function(){return false;}); }, } @@ -80,9 +80,9 @@ $(window).ready(function(){ } }); - $(window).bind('beforeunload', function(){ + $(window).bind('unload', function(){ f.unload('{{seminar.id}}','{{user.username}}'); - return ''; + return false; }); }); -- 2.39.5