diff --git a/app/views/tasks/_task.rhtml b/app/views/tasks/_task.rhtml
index ed1e777..2884011 100644
--- a/app/views/tasks/_task.rhtml
+++ b/app/views/tasks/_task.rhtml
@@ -4,13 +4,13 @@
<% form_for('task', task, :url => { :action => 'close', :id => task.id}) do |f| %>
- <%= labelled_radio_button _('OK'), :decision, 'finish', true, :onclick => 'if(this.checked) $("rejection-field").style.display="none"' %>
+ <%= labelled_radio_button _('OK'), :decision, 'finish', true, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='none'" %>
- <%= labelled_radio_button _('Cancel'), :decision, 'cancel', false, :onclick => 'if(this.checked) $("rejection-field").style.display="block"' %>
+ <%= labelled_radio_button _('Cancel'), :decision, 'cancel', false, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='block'" %>
-
+
<%= required labelled_form_field(_('Rejection explanation'), text_area(:task, :reject_explanation, :rows => 5))%>
--
libgit2 0.21.2