<script type="text/javascript" charset="utf-8">
function update_parts_attaches()
{
jQuery.post("/works/attaches",{part_id:<%=@part.id%>},function(result){
jQuery('#image-bucket').html(result);
});jQuery.post("/works/parts",{part_id:<%=@part.id%>,id:<%=@work.id%>},function(result){
jQuery('#parts').html(result);
});
}
</script>