Commit 2d6f4468f0a4e30e17be2a0f51e4c035ad8102f3
1 parent
bcfec5df
Exists in
master
and in
8 other branches
Display task selected with approval or reproval flag
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
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> | ... | ... |