nccu-news/app/views/admin/news/index.html.erb

19 lines
530 B
Plaintext
Raw Normal View History

2014-11-07 08:44:11 +00:00
<%= render_filter @filter_fields, "index_table" %>
<span id="index_table">
<%= render 'index'%>
</span>
2014-11-14 09:50:18 +00:00
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
<%= render :partial=> "approval_modal" %>
<script type="text/javascript">
$(".appoval_button").on("click",function(){
var url = $(this).data("approve-link"),
modal = $("#approvalModal");
modal.find("iframe").attr("src", url);
modal.find("#object_id").val($(this).data("id"));
modal.modal("show");
return false;
})
</script>