2015-08-28 11:32:57 +08:00
|
|
|
//$("#HomeWorkCon").replaceWith("<%#= escape_javascript(render :partial => 'users/user_homework_form', :locals => { :homework => @homework,:edit_mode => true })%>");
|
|
|
|
hideModal('#coursesChoosePopup');
|
|
|
|
$("#homework_name").val("<%= @homework.name%>");
|
|
|
|
$("#homework_end_time").val("<%= @homework.end_time%>");
|
|
|
|
$("#course_id").val("<%= @homework.course_id%>");
|
2015-09-11 10:50:16 +08:00
|
|
|
$("#homework_attachments").html("<%= escape_javascript(render :partial => 'users/user_homework_attachment', :locals => { :container => @homework,:has_program => true })%>");
|
2015-08-28 11:32:57 +08:00
|
|
|
homework_description_editor.html("<%= escape_javascript(@homework.description.html_safe)%>");
|
2015-09-11 16:22:35 +08:00
|
|
|
$("#BluePopupBox").html("<%=escape_javascript( render :partial => 'users/user_programing_attr', :locals => {:edit_mode => true, :homework => @homework})%>");
|
2015-09-11 16:27:34 +08:00
|
|
|
//$("input[name='homework_type']").val("<%#= @homework.homework_type%>");
|
2015-09-02 10:25:22 +08:00
|
|
|
$("#homework_editor").show();
|
2015-09-11 16:26:35 +08:00
|
|
|
$("#BluePopupBox a.BlueCirBtn").click();
|