From 0587ca9e0478d0872f864c113bbe2ae6e5ea6249 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 26 Jul 2014 09:12:40 +0200 Subject: [PATCH] fix --- teleforma/exam/templates/exam/script_detail.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 %} -- 2.39.5