隐藏导入作业的申请题库
This commit is contained in:
parent
820e594fec
commit
2afce9d563
|
@ -3,6 +3,8 @@
|
|||
<div class="subject-list fl mr10">
|
||||
<a href="<%= user_homework_type_user_path(@user,:is_import => 1) %>" id="public_homeworks_choose" class="resource-tab resource-tab-active fl" data-remote="true">公共题库</a>
|
||||
<a href="<%= user_homework_type_user_path(@user,:type=>'2',:is_import => 1) %>" id="user_homeworks_choose" class="resource-tab fl" data-remote="true">我的题库</a>
|
||||
<!--<a href="<%#= user_homework_type_user_path(@user,:type=>'3',:is_import => 1) %>" id="apply_homeworks_choose" class="resource-tab fl" data-remote="true">申请题库</a>-->
|
||||
|
||||
<div id="homework_search_input">
|
||||
<%=render :partial=>'homework_search_input', :locals=>{:type => @type,:is_import => 1} %>
|
||||
</div>
|
||||
|
@ -43,11 +45,18 @@
|
|||
</div>
|
||||
<script type="text/javascript">
|
||||
$("#public_homeworks_choose").click(function(){
|
||||
$(this).toggleClass("resource-tab-active");
|
||||
$("#user_homeworks_choose").toggleClass("resource-tab-active");
|
||||
$(this).addClass("resource-tab-active");
|
||||
$("#user_homeworks_choose").removeClass("resource-tab-active");
|
||||
//$("#apply_homeworks_choose").removeClass("resource-tab-active");
|
||||
});
|
||||
$("#user_homeworks_choose").click(function(){
|
||||
$(this).toggleClass("resource-tab-active");
|
||||
$("#public_homeworks_choose").toggleClass("resource-tab-active");
|
||||
$(this).addClass("resource-tab-active");
|
||||
$("#public_homeworks_choose").removeClass("resource-tab-active");
|
||||
//$("#apply_homeworks_choose").removeClass("resource-tab-active");
|
||||
});
|
||||
// $("#apply_homeworks_choose").click(function(){
|
||||
// $(this).addClass("resource-tab-active");
|
||||
// $("#public_homeworks_choose").removeClass("resource-tab-active");
|
||||
// $("#user_homeworks_choose").removeClass("resource-tab-active");
|
||||
// });
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue