|
|
@ -26,7 +26,6 @@
|
|
|
|
<span class="<%=index == 0 ? 'icons_sy_open' : 'icons_sy_close' %> fl mr5"></span>
|
|
|
|
<span class="<%=index == 0 ? 'icons_sy_open' : 'icons_sy_close' %> fl mr5"></span>
|
|
|
|
<h3 class="syllabus_courses_title fl"><%=syllabus.title %></h3>
|
|
|
|
<h3 class="syllabus_courses_title fl"><%=syllabus.title %></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr', :title => '管理课程' %>
|
|
|
|
|
|
|
|
<p class="fl sy_p_grey">更新时间:<%=format_date syllabus.updated_at %>
|
|
|
|
<p class="fl sy_p_grey">更新时间:<%=format_date syllabus.updated_at %>
|
|
|
|
<span class="mr10"></span>创建老师:<%=syllabus.user.show_name %>
|
|
|
|
<span class="mr10"></span>创建老师:<%=syllabus.user.show_name %>
|
|
|
|
<span class="mr10"></span>班级:<%=courses.count %>
|
|
|
|
<span class="mr10"></span>班级:<%=courses.count %>
|
|
|
@ -66,6 +65,9 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div><!--syllabus_class_box end-->
|
|
|
|
</div><!--syllabus_class_box end-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr', :title => '管理课程' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<ul class="wlist" id="pages" >
|
|
|
|
<ul class="wlist" id="pages" >
|
|
|
@ -89,23 +91,22 @@
|
|
|
|
var tmpHeight = $(".syllabus_box").height() + diffHeight;
|
|
|
|
var tmpHeight = $(".syllabus_box").height() + diffHeight;
|
|
|
|
$(".syllabus_box").css("height", tmpHeight);
|
|
|
|
$(".syllabus_box").css("height", tmpHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$(".sy_courses_open").toggle(function(){
|
|
|
|
$(".syllabus_courses_list").toggle(function(){
|
|
|
|
//$(this).hide();
|
|
|
|
$(this).next().hide();
|
|
|
|
$(this).parent().next().hide();
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
$(this).children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
|
|
|
|
//$(this).parent().next().show();
|
|
|
|
//$(this).parent().next().show();
|
|
|
|
},function(){
|
|
|
|
},function(){
|
|
|
|
$(this).parent().next().show();
|
|
|
|
$(this).next().show();
|
|
|
|
$(this).children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(".sy_courses_close").toggle(function(){
|
|
|
|
$(".sy_courses_close").toggle(function(){
|
|
|
|
//$(this).hide();
|
|
|
|
//$(this).hide();
|
|
|
|
$(this).parent().next().show();
|
|
|
|
$(this).next().show();
|
|
|
|
$(this).children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
//$(this).parent().next().show();
|
|
|
|
//$(this).parent().next().show();
|
|
|
|
},function(){
|
|
|
|
},function(){
|
|
|
|
$(this).parent().next().hide();
|
|
|
|
$(this).next().hide();
|
|
|
|
$(this).children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|