25 lines
755 B
Plaintext
25 lines
755 B
Plaintext
$(document).ready(function(){
|
|
//alert("Anc Loaded");
|
|
$('.bulletin_links_block a.delete').live('click', function(){
|
|
$(this).parents('.list_item').remove();
|
|
});
|
|
|
|
$('.bulletin_files_block a.delete').live('click', function(){
|
|
$(this).parents('.list_item').remove();
|
|
});
|
|
|
|
$(document).on('click', '.action a.remove_existing_record', function(){
|
|
if(confirm("<%= I18n.t('announcement.sure?')%>")){
|
|
$(this).next('.should_destroy').attr('value', 1);
|
|
$("tr#" + $(this).prev().attr('value')).hide();
|
|
}
|
|
});
|
|
|
|
$(document).on('click', '.quick_edit_cancel', function(){
|
|
tr = $(this).attr('rel');
|
|
$('#' + tr).hide();
|
|
$("tr#bulletin_file_" + $(this).prev().attr('value')).hide();
|
|
$("tr#bulletin_link_" + $(this).prev().attr('value')).hide();
|
|
});
|
|
|
|
}); |