Commit 26ebfc452c77c758e67b245b299f0763e704aad8
1 parent
3433fa75
Exists in
master
and in
7 other branches
Fix task partial
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
views/proposals_discussion_plugin_tasks/_task.html.erb
@@ -105,9 +105,11 @@ | @@ -105,9 +105,11 @@ | ||
105 | 105 | ||
106 | </div><!-- class="task_box" --> | 106 | </div><!-- class="task_box" --> |
107 | 107 | ||
108 | +<% if task.flagged? %> | ||
108 | <script> | 109 | <script> |
109 | jQuery(document).ready(function($) { | 110 | jQuery(document).ready(function($) { |
110 | - var flag = '<%= task.flagged_for_approval? ? 'approval' : task.flagged_for_reproval? ? 'reproval' : '' %>'; | 111 | + var flag = '<%= task.flagged_for_approval? ? 'approval' : 'reproval' %>'; |
111 | toggleEvaluation($('#task-<%= task.id %> div.evaluation_button.' + flag)); | 112 | toggleEvaluation($('#task-<%= task.id %> div.evaluation_button.' + flag)); |
112 | }); | 113 | }); |
113 | </script> | 114 | </script> |
115 | +<% end %> |