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

index 686270e36353a940ff15dc7ded376f90ba21cc80..dc38f23278b3686bbdbb7d3e78e0ecb64a5163cb 100644 (file)
@@ -29,8 +29,8 @@
      <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')) {f.reject('{{answer.id}}', $(this)); $(this).unbind('click'); return false;}
-            if ($(this).hasClass('icon_delete')) {f.validate('{{answer.id}}', $(this)); $(this).unbind('click'); return false;}">
+            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;}">
             {% if answer.validated %}{% trans " validated" %}{% else %}{% trans " rejected" %}{% endif %}</a>
         {% endif %}
      </td>