|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
<li class="orgListCatalog hidden"> -- </li>
|
|
|
|
|
<%#= link_to "隐藏", hide_org_subsubdomain_organizations_path(subdomain), :method => 'post', :remote => true, :id => "hide_#{subdomain.id}", :class => "linkBlue fr mr5" %>
|
|
|
|
|
<li class="orgSubOperation">
|
|
|
|
|
<a href="javascript:void(0);" class="linkGrey fr ml5 mr10" onclick="hide($(this),'<%= subdomain.id %>');" id="hide_<%= subdomain.id %>"><%= subdomain.hide==0?"隐藏":"可见" %></a>
|
|
|
|
|
<a href="javascript:void(0);" class="linkGrey fr ml5 mr10" onclick="hide_domain($(this),'<%= subdomain.org_subfield.id %>','<%= subdomain.id %>');" id="hide_<%= subdomain.id %>"><%= subdomain.hide==0?"隐藏":"可见" %></a>
|
|
|
|
|
<span class="fr">|</span>
|
|
|
|
|
<%= link_to "删除", org_subfield_sub_domain_path(subdomain, :org_subfield_id => subdomain.org_subfield.id), :method => 'delete', :remote => true, :confirm => "您确定删除吗?", :class => "linkGrey fr ml5 mr5" %>
|
|
|
|
|
<span class="fr">|</span>
|
|
|
|
@ -68,4 +68,17 @@
|
|
|
|
|
$(show_id).show();
|
|
|
|
|
$(edit_id).hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function hide_domain(content, field_id, domain_id){
|
|
|
|
|
if (content.text() == '隐藏')
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/org_subfields/" + field_id + "/sub_domains/" + domain_id + "/hide_sub_domain",
|
|
|
|
|
type: "post"
|
|
|
|
|
});
|
|
|
|
|
else
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/org_subfields/" + field_id + "/sub_domains/" + domain_id + "/show_sub_domain",
|
|
|
|
|
type: "post"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|