From 131ac7485065b5302f8216fb22d60727558911d8 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 22 Jul 2014 00:35:09 +0200 Subject: [PATCH] fix --- teleforma/templates/teleforma/seminar_detail.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}}'); }); - } }); -- 2.39.5