From: Guillaume Pellerin Date: Mon, 21 Jul 2014 22:35:09 +0000 (+0200) Subject: fix X-Git-Tag: 2.8.1-pro~282^2~53 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=131ac7485065b5302f8216fb22d60727558911d8;p=teleforma.git fix --- diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index b735f403..57b05e7c 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -72,7 +72,7 @@ $(document).ready(function( ){ }); $(window).ready(function( ){ - {% if user.is_staff %} + {% if user.is_staff %} var p = $('#publish'); p.unbind('click').click(function() { if (p.hasClass('icon_ok')){ @@ -84,11 +84,10 @@ $(window).ready(function( ){ return null; } }); - {% endif %} + {% endif %} $(window).bind('beforeunload', function(){ f.unload('{{seminar.id}}','{{user.username}}'); }); - } });