|
|
|
@ -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)%>
|
|
|
|
|