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(){
|
$('.bulletin_links_block a.delete').live('click', function(){
|
||||||
$(this).parents('.list_item').remove();
|
$(this).parents('.list_item').remove();
|
||||||
});
|
});
|
||||||
|
@ -17,3 +19,5 @@ $(document).on('click', '.quick_edit_cancel', function(){
|
||||||
$("tr#bulletin_file_" + $(this).prev().attr('value')).hide();
|
$("tr#bulletin_file_" + $(this).prev().attr('value')).hide();
|
||||||
$("tr#bulletin_link_" + $(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(){
|
$('.news_bulletin_links_block a.delete').live('click', function(){
|
||||||
$(this).parents('.list_item').remove();
|
$(this).parents('.list_item').remove();
|
||||||
});
|
});
|
||||||
|
@ -17,3 +20,4 @@ $(document).on('click', '.quick_edit_cancel', function(){
|
||||||
$("tr#news_bulletin_file_" + $(this).prev().attr('value')).hide();
|
$("tr#news_bulletin_file_" + $(this).prev().attr('value')).hide();
|
||||||
$("tr#news_bulletin_link_" + $(this).prev().attr('value')).hide();
|
$("tr#news_bulletin_link_" + $(this).prev().attr('value')).hide();
|
||||||
});
|
});
|
||||||
|
});
|
|
@ -8,3 +8,7 @@
|
||||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<%= javascript_include_tag "bulletin_form" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ class Panel::News::BackEnd::NewsApprovalsController < OrbitBackendController
|
||||||
include AdminHelper
|
include AdminHelper
|
||||||
|
|
||||||
def preview_and_approve
|
def preview_and_approve
|
||||||
@news_bulletin = NewsBulletin.find params[:news_category][:id]
|
@news_bulletin = NewsBulletin.find params[:news_bulletin_id]
|
||||||
end
|
end
|
||||||
|
|
||||||
def approve
|
def approve
|
||||||
|
|
|
@ -8,3 +8,6 @@
|
||||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<%= javascript_include_tag "news_bulletin_form" %>
|
||||||
|
<% end %>
|
||||||
|
|
Reference in New Issue