2016-05-09 17:06:10 +08:00
|
|
|
<% if @user_activity_id != -1 %>
|
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_homework', :locals => {:activity => @homework_common,:user_activity_id =>@user_activity_id,:course_activity => @course_activity}) %>");
|
|
|
|
sd_create_editor_from_data(<%= @user_activity_id%>,"","100%", "UserActivity");
|
|
|
|
<% else %>
|
2016-05-06 17:36:28 +08:00
|
|
|
$("#homework_common_<%= @homework_common.id %>").replaceWith("<%= escape_javascript(render :partial => 'users/user_homework_detail', :locals => {:homework_common => @homework_common,:is_in_course => @is_in_course}) %>");
|
|
|
|
sd_create_editor_from_data(<%= @homework_common.id%>,"","100%", "HomeworkCommon");
|
|
|
|
<% end %>
|