]> git.parisson.com Git - teleforma.git/commitdiff
fix
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 26 Jul 2014 07:12:40 +0000 (09:12 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 26 Jul 2014 07:12:40 +0000 (09:12 +0200)
teleforma/exam/templates/exam/script_detail.html

index ff9745cefd4940f7747906a6550fa3b9c566ed0c..2518a3e06bf876279ba924fa0ca9dff6f6f4119e 100644 (file)
 
     });
 
-  $(window).ready(function(){
-    $( "#dialog_comments" ).dialog( "open");
-  });
-
+  {% if script.comments %}
+    $(window).ready(function(){
+      $( "#dialog_comments" ).dialog( "open");
+    });
+  {% endif %}
     </script>
-{% endblock extra_javascript %}
 
+{% endblock extra_javascript %}
 
 {% block content %}