29 lines
895 B
Plaintext
29 lines
895 B
Plaintext
<%= render_filter @filter_fields, "index_table" %>
|
|
<span id="index_table">
|
|
<%= render 'index'%>
|
|
</span>
|
|
|
|
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
|
|
|
|
<% if AnnouncementSetting.is_pro? && (@access_level == "admin" || @access_level == "manager") %>
|
|
<%= render :partial=> "approval_modal" %>
|
|
|
|
<script type="text/javascript">
|
|
var modal = $("#approvalModal");
|
|
$(document).on("click", ".approval_button",function(){
|
|
var url = $(this).attr("href");
|
|
modal.find("iframe").attr("src", url);
|
|
modal.find("#object_id").val($(this).data("id"));
|
|
modal.modal("show");
|
|
return false;
|
|
})
|
|
|
|
var params = getUrlVars();
|
|
console.log(params["url"])
|
|
if(typeof params["url"] != "undefined"){
|
|
modal.find("iframe").attr("src", params["url"]);
|
|
modal.find("#object_id").val(params["id"]);
|
|
modal.modal("show");
|
|
}
|
|
</script>
|
|
<% end %> |