fix news error
This commit is contained in:
parent
83a72bdf6e
commit
6a4abc6c43
|
@ -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();
|
||||
});
|
||||
|
||||
});
|
|
@ -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();
|
||||
});
|
||||
});
|
|
@ -8,3 +8,7 @@
|
|||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% content_for :page_specific_javascript do %>
|
||||
<%= javascript_include_tag "bulletin_form" %>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Reference in New Issue