2016-09-19 17:14:14 +08:00
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_homework', :locals => {:activity => @homework_common,:user_activity_id =>@user_activity_id,:hw_status=>@hw_status}) %>");
|
|
|
|
<% if @user_activity_id != @homework_common.id %>
|
|
|
|
sd_create_editor_from_data(<%= @user_activity_id%>,"","100%", "UserActivity");
|
|
|
|
<% else %>
|
|
|
|
sd_create_editor_from_data(<%= @homework_common.id%>,"","100%", "<%=@homework_common.class.to_s%>");
|
|
|
|
<% end %>
|