%- dom_id = dom_id(asset) -%> <%- delete_link = %{ :papermill, :resource => asset.name)}')){ $.ajax({async:true, beforeSend:function(request){$('##{dom_id}').hide();}, dataType:'script', error:function(request){$('##{dom_id}').show();}, type:'delete', url:'#{papermill_url(asset)}'})}; return false;" href="#" class="delete"> "papermill", :ressource => asset.name)}" src="/images/papermill/delete.png" alt="delete"/>} %>