作业列表的tab加入点击事件

This commit is contained in:
daiao 2017-05-18 15:38:29 +08:00
parent aa0ed21b8c
commit beb4bf04fc
3 changed files with 10 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<a href="#" class="edu-btn fr mr10">导出成绩</a>
</div>
<div class="edu-class-innner-conbox">
<div class="edu-con-top clearfix">
<div class="edu-con-top clearfix" >
<p class="fl task-form-60 mt3 ml15">
<a href="<%= homework_common_index_path(:course => @course.id) %>" class="edu-filter-cir-grey mr5 active">全部</a>
<a href="<%= homework_common_index_path(:course => @course.id, :order => 0) %>" class="edu-filter-cir-grey mr5" data-remote="true">挂起</a>
@ -29,4 +29,3 @@
</div>
</div>

View File

@ -20,7 +20,7 @@
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common','css/public', 'css/structure','prettify', 'css/courses','css/popup','sy_public','css/syllabus', 'css/moduel', 'css/font-awesome','css/contest', 'css/font-awesome', 'css/edu-class', 'css/edu-popup' %>
<%= javascript_include_tag "course","avatars","header","attachments",'prettify',"edu/application", 'edu/class' %>
<%= javascript_include_tag "course","avatars","header","attachments",'prettify',"edu/application", "edu/course" %>
<!-- page specific tags -->
<%= yield :header_tags -%>
<!-- MathJax的配置 -->

View File

@ -132,6 +132,14 @@ $(function() {
$(".join .handle").hide();
}
});
/* ------------------------- 作业列表全部/挂机/提交中/补交中....的点击事情 ----------------------------*/
$(".edu-filter-cir-grey").live("click", function(ev){
var nStatus = $(".edu-filter-cir-grey");
nStatus.removeClass("active");
$(this).addClass("active");
});
// var changeColor = function(c){
// if(c.find(".blue").css("display") == "none") {
// c.find(".blue").show();