从题库选用作业:编程作业变成普通作业时,编程相关的属性设置还存在

This commit is contained in:
cxt 2017-02-24 19:11:29 +08:00
parent 73f64e80a8
commit ca706f3df5
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ homework_description_editor.html("<%= escape_javascript(@homework.description.ht
<% elsif @homework_detail_group %>
$("#homeworkSetting").removeClass("undis");
$("#homeworkSetting").html("<%=escape_javascript(render :partial => 'users/user_group_attr', :locals => {:edit_mode => true, :homework=>@homework, :not_allow_select => false}) %>");
<% else %>
$("#homeworkSetting").addClass("undis");
<% end %>
document.getElementById("homework_type_option").options[<%=@homework.homework_type %>].selected = true;
$("#select_type_nitice").hide();