This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/assets/javascripts/bulletin_form.js.erb

26 lines
779 B
Plaintext
Raw Normal View History

<%#= encoding: utf-8 %>
2012-06-27 01:59:32 +00:00
$(document).ready(function(){
//alert("Anc Loaded");
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
});
$(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();
}
});
2012-04-29 15:39:28 +00:00
$(document).on('click', '.quick_edit_cancel', 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-06-27 01:59:32 +00:00
});
2012-01-11 12:31:52 +00:00
});