From: Guillaume Pellerin Date: Tue, 23 Apr 2013 13:54:23 +0000 (+0200) Subject: again X-Git-Tag: 2.8.1-pro~489^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b33c8fa2c3531a5fcb820c74b91174373672bd81;p=teleforma.git again --- diff --git a/teleforma/templates/teleforma/inc/answer_list.html b/teleforma/templates/teleforma/inc/answer_list.html index dc38f232..95b8f836 100644 --- a/teleforma/templates/teleforma/inc/answer_list.html +++ b/teleforma/templates/teleforma/inc/answer_list.html @@ -28,9 +28,9 @@ {{ answer.answer|summary:120 }} {% if user.is_staff %} + 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 %} {% endif %}