From: Guillaume Pellerin Date: Sun, 20 Jul 2014 16:49:28 +0000 (+0200) Subject: try bugfix X-Git-Tag: 2.8.1-pro~282^2~105 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ce3369fe23c71e9a28d7b02236dda6d63464d575;p=teleforma.git try bugfix --- 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; }); });