分组作业点击展开效果
This commit is contained in:
parent
6f4618fffb
commit
e8cca255a0
|
@ -5,9 +5,22 @@
|
|||
</div>
|
||||
<div id="about_hwork_<%= student_work.id %>"></div>
|
||||
|
||||
<div id="group_member_work_<%= student_work.id%>">
|
||||
<div id="group_member_work_<%= student_work.id%>" class="undis">
|
||||
<%= render :partial => 'group_member_work', :locals => {:student_work => student_work} %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
|
||||
<script>
|
||||
$(".icons_sy_close").live('click',function(){
|
||||
$(this).parent().parent().next().next().show();
|
||||
$(this).removeClass("icons_sy_close");
|
||||
$(this).addClass("icons_sy_open");
|
||||
});
|
||||
$(".icons_sy_open").live('click',function(){
|
||||
$(this).parent().parent().next().next().hide();
|
||||
$(this).addClass("icons_sy_close");
|
||||
$(this).removeClass("icons_sy_open");
|
||||
});
|
||||
</script>
|
|
@ -1,7 +1,7 @@
|
|||
<ul id="syllabus_course_ul">
|
||||
<li class="syllabus_class_list " style="line-height:44px; vertical-align:middle;">
|
||||
<li class="syllabus_class_list" style="line-height:44px; vertical-align:middle;">
|
||||
<div class="syllabus_class_w fontGrey3">
|
||||
<%= link_to(image_tag(url_to_avatar(st.user),:width =>"40",:height => "40"),user_activities_path(st.user), :class => "fl") %>
|
||||
<%= link_to(image_tag(url_to_avatar(st.user),:width =>"40",:height => "40", :style => "display:block;"),user_activities_path(st.user), :class => "fl") %>
|
||||
<% if !st.student_work_projects.empty? %>
|
||||
<span class="fl student_work_<%= st.id%>" style="width:135px;">
|
||||
<span class="fl hidden ml5" style="max-width:90px;"><%= st.user.show_name %></span>
|
||||
|
@ -67,8 +67,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hworkTip" style="display: none" id="work_click_<%= st.id%>"><em></em><span></span><font class="fontGrey2"><%= !st.student_work_projects.empty? ? '大作品评分即组长的评分' : '点击查看详情' %></font></div>
|
||||
</li>
|
||||
<div style="position:relative;"><div class="hworkTip" style="display: none" id="work_click_<%= st.id%>"><em></em><span></span><font class="fontGrey2"><%= !st.student_work_projects.empty? ? '大作品评分即组长的评分' : '点击查看详情' %></font></div></div>
|
||||
</ul>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="sy_courses_open f14 fontGrey3">
|
||||
<span class="icons_sy_open fl mr5" title="点击展开/收起详情"></span>
|
||||
<span class="icons_sy_close fl mr5" title="点击展开/收起详情"></span>
|
||||
<span class="fl" style="width:280px;">
|
||||
<span class="hidden fl" style="max-width:240px;"><%=student_work.name %></span>
|
||||
<span class="fontGrey2 ml5 fl">
|
||||
|
|
Loading…
Reference in New Issue