老师发布作业取消功能
This commit is contained in:
parent
76ec0d5d48
commit
bbb8e5a062
|
@ -38,7 +38,7 @@
|
|||
<div class="mt5 fr">
|
||||
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick=" submit_homework('new_homework_common');">发送</a>
|
||||
<span class="fr mr10 mt3">或</span>
|
||||
<a href="javascript:void(0);" class=" fr mr10 mt3">取消</a>
|
||||
<a href="javascript:void(0);" class=" fr mr10 mt3" onclick="reset_homework();">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
|
@ -11,6 +11,14 @@
|
|||
}
|
||||
};
|
||||
$(window).scroll(scrollHandler);
|
||||
|
||||
function reset_homework(){
|
||||
$("#homework_name").val("");
|
||||
$("#homework_end_time").val("");
|
||||
$("#course_id").val("");
|
||||
$("#homework_attachments").html("<%= escape_javascript(render :partial => 'users/user_homework_attachment', :locals => { :container => HomeworkCommon.new })%>");
|
||||
homework_description_editor.html("");
|
||||
}
|
||||
</script>
|
||||
|
||||
<% if User.current.user_extensions && User.current.user_extensions.identity == 0 && User.current.allowed_to?(:add_course, nil, :global => true)%>
|
||||
|
|
Loading…
Reference in New Issue