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