Orbit/app/assets/Archive/javascripts/archive_form.js.erb

10 lines
318 B
Plaintext
Raw Normal View History

2012-08-20 09:14:13 +00:00
$('.archive_file_multiples_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
$(document).on('click', '.action a.remove_existing_record', function(){
$(this).next('.should_destroy').attr('value', 1);
$("tr#archive_file_multiple_" + $(this).prev().attr('value')).hide();
});