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.
2012-06-27 06:27:27 +00:00
|
|
|
<%#= encoding: utf-8 %>
|
2012-06-27 01:59:32 +00:00
|
|
|
$(document).ready(function(){
|
|
|
|
//alert("News Loaded");
|
|
|
|
|
2012-04-30 00:32:54 +00:00
|
|
|
$('.news_bulletin_links_block a.delete').live('click', function(){
|
|
|
|
$(this).parents('.list_item').remove();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.news_bulletin_files_block a.delete').live('click', function(){
|
|
|
|
$(this).parents('.list_item').remove();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click', '.action a.remove_existing_record', function(){
|
2012-09-12 11:12:50 +00:00
|
|
|
if(confirm("<%= I18n.t(:sure?)%>")){
|
2012-06-27 06:21:06 +00:00
|
|
|
$(this).next('.should_destroy').attr('value', 1);
|
|
|
|
$("tr#" + $(this).prev().attr('value')).hide();
|
|
|
|
}
|
2012-04-30 00:32:54 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('click', '.quick_edit_cancel', function(){
|
|
|
|
tr = $(this).attr('rel');
|
|
|
|
$('#' + tr).hide();
|
|
|
|
$("tr#news_bulletin_file_" + $(this).prev().attr('value')).hide();
|
|
|
|
$("tr#news_bulletin_link_" + $(this).prev().attr('value')).hide();
|
2012-06-27 01:59:32 +00:00
|
|
|
});
|
2012-08-13 10:35:47 +00:00
|
|
|
$('.reject_info').tooltip({
|
|
|
|
placement : 'bottom'
|
|
|
|
});
|
2012-04-30 00:32:54 +00:00
|
|
|
});
|