2016-06-07 16:02:00 +08:00
|
|
|
<% if params[:type] == 'HomeworkCommon' %>
|
2016-09-19 17:14:14 +08:00
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/news_replies', :locals => {:comments => @journals, :type => @type, :hw_status =>@hw_status, :is_teacher => @is_teacher, :user_activity_id => @user_activity_id, :activity_id => params[:id].to_i}) %>');
|
2016-06-23 14:47:22 +08:00
|
|
|
<% elsif params[:type] == 'JournalsForMessage' %>
|
2016-07-20 17:00:18 +08:00
|
|
|
$('#reply_div_<%= @user_activity_id %>').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}) %>');
|
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' %>
|
2016-07-26 17:45:59 +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, :homepage => @homepage, :user_id => @user_id}) %>');
|
2016-07-14 17:23:48 +08:00
|
|
|
<% elsif params[:type] == 'OrgDocumentComment' %>
|
2016-07-20 17:00:18 +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}) %>');
|
2016-07-25 13:56:26 +08:00
|
|
|
<% elsif params[:type] == 'News' || params[:type] == 'Issue' || params[:type] == 'Syllabus' %>
|
2016-07-20 17:00:18 +08:00
|
|
|
$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/news_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
|
|
|
<% end %>
|