From: Guillaume Pellerin Date: Sat, 26 Jul 2014 07:12:40 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~345 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0587ca9e0478d0872f864c113bbe2ae6e5ea6249;p=teleforma.git fix --- diff --git a/teleforma/exam/templates/exam/script_detail.html b/teleforma/exam/templates/exam/script_detail.html index ff9745ce..2518a3e0 100644 --- a/teleforma/exam/templates/exam/script_detail.html +++ b/teleforma/exam/templates/exam/script_detail.html @@ -75,13 +75,14 @@ }); - $(window).ready(function(){ - $( "#dialog_comments" ).dialog( "open"); - }); - + {% if script.comments %} + $(window).ready(function(){ + $( "#dialog_comments" ).dialog( "open"); + }); + {% endif %} -{% endblock extra_javascript %} +{% endblock extra_javascript %} {% block content %}