Commit 2d6f4468f0a4e30e17be2a0f51e4c035ad8102f3

Authored by Victor Costa
1 parent bcfec5df

Display task selected with approval or reproval flag

views/proposals_discussion_plugin_tasks/_task.html.erb
... ... @@ -104,3 +104,10 @@
104 104 <% end %>
105 105  
106 106 </div><!-- class="task_box" -->
  107 +
  108 +<script>
  109 + jQuery(document).ready(function($) {
  110 + var flag = '<%= task.flagged_for_approval? ? 'approval' : task.flagged_for_reproval? ? 'reproval' : '' %>';
  111 + toggleEvaluation($('#task-<%= task.id %> div.evaluation_button.' + flag));
  112 + });
  113 +</script>
... ...