announcement-test/app/views/admin/announcements/get_all_anncs_without_suban...

53 lines
2.2 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title><%= current_site.title %> | <%= t('dashboard_') %></title>
<script type="text/javascript">
var currentLocaleForCKEDITOR = "<%= (I18n.locale.to_s == "zh_tw" ? (session[:zh_cn] ? 'zh-cn' : 'zh' ) : "en" ) %>";
</script>
<%= render 'shared/google_font' %>
<%= stylesheet_link_tag "back_end", media: "all" %>
<%= stylesheet_link_tag params[:controller] if Rails.application.assets.find_asset "#{params[:controller]}.css" %>
<%= stylesheet_link_tag params[:org_controller] if Rails.application.assets.find_asset "#{params[:org_controller]}.css" %>
<%= yield :page_specific_css %>
<%= render 'shared/ie_html5_fix' %>
<%= javascript_include_tag "back_end" %>
<%= javascript_include_tag params[:controller] if Rails.application.assets.find_asset "#{params[:controller]}.js" %>
<%= javascript_include_tag params[:org_controller] if Rails.application.assets.find_asset "#{params[:org_controller]}.js" %>
<%= yield :page_specific_javascript %>
</head>
<body>
<section id="main-wrap">
<div class="wrap-inner">
<%= render_filter @filter_fields, "index_table" %>
<% if @module_app.present?%>
<div id="filter" class="topnav clearfix">
<%= yield :right_nav %>
</div>
<%end%>
<script>
$("#filter-input").bind("input", function() {queueSearch();});
$("#module-search-form").submit(function(){queueSearch(); return false; });
</script>
<span id="index_table">
<%= render 'get_all_anncs_without_subannc'%>
</span>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
</div>
</section>
<%= javascript_include_tag "lib/pageslide.js" %>
<script>
$(document).on("click","#index_table table input[name=\"ids\"]",function(){
var val = $(this).val();
if($(this).is(":checked")){
var annc_row = $(this).parents(".annc_row");
var annc_title = annc_row.find(".annc_title").html();
var annc_date = annc_row.find(".annc_date").text();
window.parent.tmp_sub_anncs[val] = {"title": annc_title, "date": annc_date};
}else{
window.parent.tmp_sub_anncs.delete(val);
}
})
</script>
</body>
</html>