个人动态的“点击展开更多”改为“轻抚展开更多”,鼠标移到方框上即自动加载更多动态

This commit is contained in:
cxt 2015-09-10 10:01:43 +08:00
parent a841c20896
commit 50aa22c5e5
1 changed files with 8 additions and 1 deletions

View File

@ -62,5 +62,12 @@
<% end %>
<% if user_activities.count == 10%>
<%= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
<div id="show_more_activities" class="loadMore mt10 f_grey">轻抚展开更多<%=link_to "", user_activities_path(@user.id,:type => type,:page => page),:id => "more_activities_link",:remote => "true",:class => "none" %></div>
<%#= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
<% end%>
<script type="text/javascript">
$("#show_more_activities").mouseover(function(){
$("#more_activities_link").click();
});
</script>