删除资源的tip问题

This commit is contained in:
miss 2017-10-13 19:44:58 +08:00
parent 39bbbc882a
commit c93f446e5a
1 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<td class="text_c"><%= history.try(:quotes).to_i %></td>
<td class="text_c"><%= format_time(history.created_on) %></td>
<td class="text_c">
<%= link_to( '<i class="fa fa-trash color-grey" data-tip-down = "删除该版本资源"></i>'.html_safe, attachment_path(history.attachment, :history_id => history, :type => "history_delete"),
<%= link_to( '<i class="fa fa-trash color-grey" data-tip-down = "删除该版本资源" id = "deleteResource"></i>'.html_safe, attachment_path(history.attachment, :history_id => history, :type => "history_delete"),
:remote => true,
:method => :delete,:class => "mr5") if allow_to_delete_attachment(history) %>
</td>
@ -53,6 +53,12 @@
</div>
<script>
$("#deleteResource").click(function(){
$(".-task-title").hide();
})
</script>