socialforge/app/views/words/leave_homework_message.js.erb

8 lines
733 B
Plaintext
Raw Normal View History

2015-10-22 09:20:19 +08:00
<% if @user_activity_id %>
$("#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}) %>");
2016-01-29 16:55:07 +08:00
sd_create_editor_from_data(<%= @user_activity_id%>,"","100%", "UserActivity");
2015-10-22 09:20:19 +08:00
<% elsif @homework_common_id && @is_in_course %>
$("#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}) %>");
2016-01-29 16:55:07 +08:00
sd_create_editor_from_data(<%= @homework_common_id%>,"","100%", "HomeworkCommon");
2015-10-22 09:20:19 +08:00
<% end %>