2016-05-06 17:36:28 +08:00
|
|
|
<% unless @comment.parent.nil? %>
|
2016-06-23 14:47:22 +08:00
|
|
|
<% if params[:type] == 'JournalsForMessage' && (@comment.jour_type == 'Principal' || @comment.jour_type == 'Course') %>
|
2016-11-25 09:59:03 +08:00
|
|
|
$('#comment_reply_<%=@comment.id %>').html("<%= escape_javascript(render :partial => 'users/journal_comment_reply', :locals => {:comment => @comment.parent, :type => params[:type]})%>");
|
2016-07-20 17:00:18 +08:00
|
|
|
<% elsif (@comment.class.to_s == 'Message' || @comment.class.to_s == 'BlogComment' || @comment.class.to_s == 'OrgDocumentComment') %>
|
2016-11-25 09:59:03 +08:00
|
|
|
$('#comment_reply_<%=@comment.id %>').html("<%= escape_javascript(render :partial => 'users/journal_comment_reply', :locals => {:comment => @comment.parent, :type => params[:type]})%>");
|
2016-06-23 14:47:22 +08:00
|
|
|
<% else %>
|
2016-11-25 09:59:03 +08:00
|
|
|
$('#comment_reply_<%=@comment.id %>').html("<%= escape_javascript(render :partial => 'users/comment_reply', :locals => {:comment => @comment.parent, :type => params[:type]})%>");
|
2016-06-23 14:47:22 +08:00
|
|
|
<% end %>
|
2016-05-06 17:36:28 +08:00
|
|
|
<% end %>
|