From 8b4a569df04f3fc32887d1ca340c0279de031bd6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 18:43:43 +0200 Subject: [PATCH] try bugfix --- .../templates/teleforma/seminar_detail.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 %} -- 2.39.5