2012-03-23 10:04:11 +00:00
|
|
|
$('.bulletin_links_block a.delete').live('click', function(){
|
2012-03-27 06:29:11 +00:00
|
|
|
$(this).parents('.list_item').remove();
|
2012-02-06 07:23:27 +00:00
|
|
|
});
|
|
|
|
|
2012-03-23 10:04:11 +00:00
|
|
|
$('.bulletin_files_block a.delete').live('click', function(){
|
2012-03-27 06:29:11 +00:00
|
|
|
$(this).parents('.list_item').remove();
|
2012-01-11 12:31:52 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('.action a.remove_existing_record').live('click', function(){
|
|
|
|
$(this).next('.should_destroy').attr('value', 1);
|
2012-03-16 07:53:57 +00:00
|
|
|
//$("#bulletin_" + $(this).prev().attr('value')).hide();
|
2012-03-14 12:05:03 +00:00
|
|
|
$("tr#bulletin_" + $(this).prev().attr('value')).hide();
|
2012-03-23 09:32:59 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('.quick_edit_cancel').live('click', function(){
|
|
|
|
tr = $(this).attr('rel');
|
|
|
|
$('#' + tr).hide();
|
2012-03-23 10:04:11 +00:00
|
|
|
$("tr#bulletin_file_" + $(this).prev().attr('value')).hide();
|
|
|
|
$("tr#bulletin_link_" + $(this).prev().attr('value')).hide();
|
2012-04-11 22:50:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click', '.list-remove', function(){
|
|
|
|
$('#delete_bulletins').submit();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click', '#check_all_bulletins', function(){
|
|
|
|
$('.checkbox_in_list').attr("checked", this.checked);
|
2012-01-11 12:31:52 +00:00
|
|
|
});
|