2015-12-04 10:59:09 +08:00
|
|
|
<% if @course %>
|
2016-01-20 16:24:14 +08:00
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'users/course_news', :locals => {:activity => @news,:user_activity_id =>@user_activity_id}) %>");
|
|
|
|
<% elsif @project %>
|
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'projects/project_news', :locals => {:activity => @news,:user_activity_id =>@user_activity_id}) %>");
|
2015-12-04 10:59:09 +08:00
|
|
|
<% else %>
|
2016-01-20 16:24:14 +08:00
|
|
|
$("#user_activity_<%= @user_activity_id%>").replaceWith("<%= escape_javascript(render :partial => 'organizations/org_subfield_news', :locals => {:activity => @news,:user_activity_id =>@user_activity_id}) %>");
|
2015-12-04 10:59:09 +08:00
|
|
|
<% end %>
|
2016-01-29 16:55:07 +08:00
|
|
|
sd_create_editor_from_data('<%= @user_activity_id%>',"","100%", "UserActivity");
|