From: Guillaume Pellerin Date: Sun, 20 Jul 2014 16:43:43 +0000 (+0200) Subject: try bugfix X-Git-Tag: 2.8.1-pro~282^2~108 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8b4a569df04f3fc32887d1ca340c0279de031bd6;p=teleforma.git try bugfix --- diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index fafe62a7..7fac084a 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -72,23 +72,23 @@ $(window).ready(function(){ p.unbind('click').click(function() { if (p.hasClass('icon_ok')){ f.unpublish('{{seminar.id}}'); - // return false; + return false; } if (p.hasClass('icon_delete')) { f.publish('{{seminar.id}}'); - // return false; + return false; } }); + $(window).bind('beforeunload', function(){ + f.unload('{{seminar.id}}','{{user.username}}'); + return ''; + }); + }); + }); -$(document).ready(function(){ - $(window).unload(function(){ - var f = seminarUtils; - f.unload('{{seminar.id}}','{{user.username}}'); - }); -}); {% endif %}