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

6 lines
527 B
Plaintext
Raw Normal View History

2016-09-21 10:34:38 +08:00
$("#homework_post_reply_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/homework_post_reply', :locals => {:activity => @homework_common, :user_activity_id => @user_activity_id, :hw_status => @hw_status, :is_teacher => @is_teacher}) %>");
2016-09-19 17:14:14 +08:00
<% if @user_activity_id != @homework_common.id %>
sd_create_editor_from_data(<%= @user_activity_id%>,"","100%", "UserActivity");
<% else %>
2016-09-19 17:14:14 +08:00
sd_create_editor_from_data(<%= @homework_common.id%>,"","100%", "<%=@homework_common.class.to_s%>");
2016-05-06 17:36:28 +08:00
<% end %>