二级栏目效果改
This commit is contained in:
parent
3565e0bf6f
commit
24c5cdfdda
|
@ -46,9 +46,9 @@
|
|||
|
||||
//二级菜单滑动时箭头方向控制
|
||||
$(".homepageLeftMenuMoreIcon").toggle(function(){
|
||||
$(".homepageLeftMenuMoreIcon").css("background","url(/images/homepage_icon.png) 100px -624px no-repeat");
|
||||
$(this).css("background","url(/images/homepage_icon.png) 100px -624px no-repeat");
|
||||
},function(){
|
||||
$(".homepageLeftMenuMoreIcon").css("background","url(/images/homepage_icon.png) -74px -240px no-repeat");
|
||||
$(this).css("background","url(/images/homepage_icon.png) -74px -240px no-repeat");
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<%=link_to "", new_organization_org_document_comment_path(organization, :field_id => field.id), :method => "get", :class => "homepageMenuSetting fr", :title => "发布帖子" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="<%= field.sub_domains.count == 0?'homepageLeftMenuCourses':'homepageLeftMenuCourses borderBottomNone' %>" id="homepageLeftMenuPost" style="display:none;">
|
||||
<div class="<%= field.sub_domains.count == 0?'homepageLeftMenuCourses':'homepageLeftMenuCourses borderBottomNone' %>" id="PostDomain_<%= field.id %>" style="display:none;">
|
||||
<ul>
|
||||
<%= render :partial => 'organizations/org_subdomain',:locals=>{:subdomains => field.sub_domains.reorder('created_at').uniq.limit(5), :org_subfield_id => field.id} %>
|
||||
</ul>
|
||||
|
@ -115,7 +115,7 @@
|
|||
|
||||
<% unless field.sub_domains.count == 0 %>
|
||||
<li class="homepageLeftMenuMore">
|
||||
<a href="javascript:void(0);" class="homepageLeftMenuMoreIcon" onclick="$('#homepageLeftMenuPost').slideToggle();" style="border-bottom: 1px solid #ddd;"></a>
|
||||
<a href="javascript:void(0);" class="homepageLeftMenuMoreIcon" onclick="$('#PostDomain_<%= field.id %>').slideToggle();" style="border-bottom: 1px solid #ddd;"></a>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue