|
|
<% if @project %>
|
|
|
<% if params[:is_project] %>
|
|
|
$("#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}) %>");
|
|
|
// ForgeActivity是具体项目的动态;UserActivity是社区的动态
|
|
|
// sd_create_editor_from_data(<%#= @user_activity_id %>, "", "100%", "ForgeActivity");
|
|
|
<% else %>
|
|
|
$("#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}) %>");
|
|
|
|
|
|
<% end %>
|
|
|
<% elsif @course %>
|
|
|
$("#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}) %>");
|
|
|
<% elsif @contest %>
|
|
|
$("#activity_post_reply_<%= @user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/contest_message_post_reply',
|
|
|
:locals => { :activity => @topic,
|
|
|
:user_activity_id => @user_activity_id}) %>");
|
|
|
<% elsif @org_subfield %>
|
|
|
$("#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}) %>");
|
|
|
<% end %>
|
|
|
sd_create_editor_from_data(<%= @user_activity_id %>, "", "100%", "UserActivity"); |