From b33c8fa2c3531a5fcb820c74b91174373672bd81 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 23 Apr 2013 15:54:23 +0200 Subject: [PATCH] again --- teleforma/templates/teleforma/inc/answer_list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 %} -- 2.39.5