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' %>
|
|
|
|
$('#reply_div_<%= @user_activity_id %>').html('<%=escape_javascript(render :partial => 'users/journal_replies', :locals => {:comments => @journals,:user_activity_id => @user_activity_id, :type => @type, :allow_delete => @allow_delete, :activity_id =>params[:id].to_i}) %>');
|
2016-07-04 14:14:51 +08:00
|
|
|
<% elsif params[:type] == 'Message' %>
|
|
|
|
$('#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}) %>');
|
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 %>
|