1.修复文章详细列表删除后,页面报错的问题;

2.文章详情页面中,文章回复显示中回复人丢失问题修复
This commit is contained in:
ouyangxuhua 2015-11-20 14:50:48 +08:00
parent e01a7c2627
commit dcbdea9bb5
3 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,9 @@ class OrgDocumentCommentsController < ApplicationController
org.home_id == nil
end
end
respond_to do |format|
format.js
end
end
def delete_reply

View File

@ -1 +1,2 @@
location.reload();
//location.reload();
window.location.href = '<%= organization_org_document_comments_path(:organization_id => @org_document_comment.root.organization_id)%>'

View File

@ -79,6 +79,7 @@
<%= link_to image_tag(url_to_avatar(user), :width => 33,:height => 33), user_path(user) %>
</div>
<div class="homepagePostReplyDes">
<%= link_to User.find(reply.creator_id).realname, user_path(reply.creator_id), :class => "newsBlue mr10 f14" %>
<div class="homepagePostReplyContent upload_img break_word" id="reply_message_description_<%= reply.id %>">
<%= reply.content.html_safe unless reply.content.nil? %>
</div>