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

index cbe4ef6dd3db3076aa8ba7893d4b65bdb09a9969..b48f950a79395ac08d623299c7b01bed0d61aeec 100644 (file)
@@ -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}}');
+    });
 
 </script>
 {% endif %}