fix news error

This commit is contained in:
Matthew K. Fu JuYuan 2012-06-27 09:59:32 +08:00
parent 83a72bdf6e
commit 6a4abc6c43
5 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,5 @@
$(document).ready(function(){
//alert("Anc Loaded");
$('.bulletin_links_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
@ -16,4 +18,6 @@ $(document).on('click', '.quick_edit_cancel', function(){
$('#' + tr).hide();
$("tr#bulletin_file_" + $(this).prev().attr('value')).hide();
$("tr#bulletin_link_" + $(this).prev().attr('value')).hide();
});
});

View File

@ -1,3 +1,6 @@
$(document).ready(function(){
//alert("News Loaded");
$('.news_bulletin_links_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
@ -16,4 +19,5 @@ $(document).on('click', '.quick_edit_cancel', function(){
$('#' + tr).hide();
$("tr#news_bulletin_file_" + $(this).prev().attr('value')).hide();
$("tr#news_bulletin_link_" + $(this).prev().attr('value')).hide();
});
});

View File

@ -8,3 +8,7 @@
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "bulletin_form" %>
<% end %>

View File

@ -4,11 +4,11 @@ class Panel::News::BackEnd::NewsApprovalsController < OrbitBackendController
include AdminHelper
def preview_and_approve
@news_bulletin = NewsBulletin.find params[:news_category][:id]
@news_bulletin = NewsBulletin.find params[:news_bulletin_id]
end
def approve
end
def setting

View File

@ -8,3 +8,6 @@
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "news_bulletin_form" %>
<% end %>