From: Guillaume Pellerin Date: Tue, 23 Apr 2013 13:49:03 +0000 (+0200) Subject: again X-Git-Tag: 2.8.1-pro~490^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=67b8e7005450315f73abd1484cf1270151cd071e;p=teleforma.git again --- diff --git a/teleforma/templates/teleforma/inc/answer_list.html b/teleforma/templates/teleforma/inc/answer_list.html index 686270e3..dc38f232 100644 --- a/teleforma/templates/teleforma/inc/answer_list.html +++ b/teleforma/templates/teleforma/inc/answer_list.html @@ -29,8 +29,8 @@ {% if user.is_staff %} + 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 %} {% endif %}