二级域名隐藏可见局部刷新
This commit is contained in:
parent
e9f88c5593
commit
1d2e6327a8
|
@ -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 %>
|
||||
|
|
|
@ -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");
|
|
@ -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");
|
Loading…
Reference in New Issue