二级域名隐藏可见局部刷新

This commit is contained in:
huang 2016-05-05 18:21:54 +08:00
parent e9f88c5593
commit 1d2e6327a8
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<% subdomains.each do |subdomain|%>
<li class="homepageLeftMenuCoursesLine" style="position:relative;">
<li class="homepageLeftMenuCoursesLine" style="display:<%= subdomain.hide.to_i == 0?'block':'none' %>;position:relative;" id="sub_domain_hide_<%= subdomain.id %>">
<%= link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => org_subfield_id), :class => "coursesLineGrey hidden", :title => subdomain.name %>
</li>
<% end %>

View File

@ -1,2 +1,2 @@
$("#hide_<%= @subfield.id %>").text("可见");
$("#org_subfield_<%= @subfield.id %>").css("display", "none");
$("#hide_<%= @subdomain.id %>").text("可见");
$("#sub_domain_hide_<%= @subdomain.id %>").css("display", "none");

View File

@ -1,2 +1,2 @@
$("#hide_<%= @subfield.id %>").text("可见");
$("#org_subfield_<%= @subfield.id %>").css("display", "none");
$("#hide_<%= @subdomain.id %>").text("隐藏");
$("#sub_domain_hide_<%= @subdomain.id %>").css("display", "block");