2015-09-01 15:24:37 +08:00
|
|
|
<%if @project%>
|
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/project_message', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
|
|
|
<%elsif @course%>
|
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_message', :locals => {:activity => @topic,:user_activity_id =>@user_activity_id}) %>");
|
|
|
|
<%end%>
|
2015-09-01 14:18:44 +08:00
|
|
|
init_KindEditor_data(<%= @user_activity_id%>);
|