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