2016-07-04 14:14:51 +08:00
|
|
|
<%if @project%>
|
2016-10-24 12:15:27 +08:00
|
|
|
<% if params[:is_project] %>
|
2016-10-24 10:57:18 +08:00
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'projects/act_messages', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id,:is_course=>@is_course,:is_board=>@is_board}) %>");
|
2016-10-24 12:15:27 +08:00
|
|
|
<% else %>
|
2016-11-25 09:59:03 +08:00
|
|
|
$("#activity_post_reply_<%= @user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/course_message_post_reply', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
2016-10-24 12:15:27 +08:00
|
|
|
<% end %>
|
|
|
|
|
2016-07-04 14:14:51 +08:00
|
|
|
<%elsif @course%>
|
2016-11-25 09:59:03 +08:00
|
|
|
$("#activity_post_reply_<%= @user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/course_message_post_reply', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
2016-07-04 14:14:51 +08:00
|
|
|
<% elsif @org_subfield %>
|
2016-11-25 09:59:03 +08:00
|
|
|
$("#activity_post_reply_<%= @user_activity_id%>").html("<%= escape_javascript(render :partial => 'organizations/org_message_post_reply', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
2016-07-04 14:14:51 +08:00
|
|
|
<%end%>
|
2016-11-25 09:59:03 +08:00
|
|
|
sd_create_editor_from_data(<%= @user_activity_id %>,"","100%", "UserActivity");
|