]> git.parisson.com Git - teleforma.git/commitdiff
again
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 23 Apr 2013 13:54:23 +0000 (15:54 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 23 Apr 2013 13:54:23 +0000 (15:54 +0200)
teleforma/templates/teleforma/inc/answer_list.html

index dc38f23278b3686bbdbb7d3e78e0ecb64a5163cb..95b8f8360dba5b55c3321649ac471b51692511b8 100644 (file)
@@ -28,9 +28,9 @@
      <td><a href="{% url teleforma-answer-detail answer.id %}">{{ answer.answer|summary:120 }}</a></td>
      <td>{% if user.is_staff %}
         <a id="validate" href="#" class="{% if answer.validated %}component_icon button icon_ok{% else %}component_icon button icon_delete{% endif %}"
-        onclick="var f = answerUtils;
-            if ($(this).hasClass('icon_ok')) {$(this).unbind('click'); f.reject('{{answer.id}}', $(this)); return false;}
-            if ($(this).hasClass('icon_delete')) {$(this).unbind('click'); f.validate('{{answer.id}}', $(this)); return false;}">
+        onclick="$(this).unbind('click'); var f = answerUtils;
+            if ($(this).hasClass('icon_ok')) {f.reject('{{answer.id}}', $(this)); return false;}
+            if ($(this).hasClass('icon_delete')) {f.validate('{{answer.id}}', $(this)); return false;}">
             {% if answer.validated %}{% trans " validated" %}{% else %}{% trans " rejected" %}{% endif %}</a>
         {% endif %}
      </td>