2016-06-07 16:02:00 +08:00
|
|
|
<% if params[:type] == 'HomeworkCommon' %>
|
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/homework_replies', :locals => {:comments => @journals, :is_in_course =>@is_in_course,:course_activity=>@course_activity, :is_teacher => @is_teacher, :user_activity_id => @user_activity_id}) %>');
|
2016-06-23 14:47:22 +08:00
|
|
|
<% elsif params[:type] == 'JournalsForMessage' %>
|
2016-07-18 16:40:04 +08:00
|
|
|
$('#reply_div_<%= @user_activity_id %>').html('<%=escape_javascript(render :partial => 'users/journal_replies', :locals => {:comments => @journals,:user_activity_id => @user_activity_id, :type => @type, :activity_id =>params[:id].to_i}) %>');
|
2016-07-04 14:14:51 +08:00
|
|
|
<% elsif params[:type] == 'Message' %>
|
2016-07-14 14:44:47 +08:00
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/message_replies', :locals => {:comments => @journals,:user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i,:is_course => @is_course, :is_board => @is_board}) %>');
|
|
|
|
<% elsif params[:type] == 'BlogComment' %>
|
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/blog_comments_replies', :locals => {:comments => @journals,:user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i, :homepage => @homepage}) %>');
|
2016-07-14 17:23:48 +08:00
|
|
|
<% elsif params[:type] == 'OrgDocumentComment' %>
|
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/org_document_replies', :locals => {:comments => @journals, :user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i}) %>');
|
2016-06-07 16:02:00 +08:00
|
|
|
<% else %>
|
2016-06-24 16:38:36 +08:00
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/all_replies', :locals => {:comments => @journals}) %>');
|
2016-06-07 16:02:00 +08:00
|
|
|
<% end %>
|