]> git.parisson.com Git - teleforma.git/commitdiff
try bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 16:49:28 +0000 (18:49 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 16:49:28 +0000 (18:49 +0200)
teleforma/templates/teleforma/seminar_detail.html

index a2a68ee30dbe7774546869666c928f1ad1f91411..825b8394949f41c23715a58e6b233c31ed5b843c 100644 (file)
@@ -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;
           });
     });