项目缺陷动态的回复不显示

This commit is contained in:
cxt 2016-06-08 15:23:19 +08:00
parent b6eb5a3668
commit c0d167d2e2
2 changed files with 2 additions and 19 deletions

View File

@ -1,22 +1,5 @@
<% issue_list(issues) do |issue, level| -%> <% issue_list(issues) do |issue, level| -%>
<script> <script>
function expand_reply(container, btnid) {
var target = $(container);
var btn = $(btnid);
if (btn.data('init') == '0') {
btn.data('init', 1);
btn.html('收起回复');
target.show();
} else {
btn.data('init', 0);
btn.html('展开更多');
target.hide();
target.eq(0).show();
target.eq(1).show();
target.eq(2).show();
}
}
$(function () { $(function () {
sd_create_editor_from_data(<%= issue.id%>, null, "100%", "<%= issue.class.name %>"); sd_create_editor_from_data(<%= issue.id%>, null, "100%", "<%= issue.class.name %>");
}); });

View File

@ -18,9 +18,9 @@
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>comment, :user_activity_id=>comment.id,:type=>"reply"}%> <%=render :partial=> "praise_tread/praise", :locals => {:activity=>comment, :user_activity_id=>comment.id,:type=>"reply"}%>
</span> </span>
</div> </div>
<% unless comment.content_detail.blank? %> <% if !comment.content_detail.blank? || comment.class == Journal %>
<div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>"> <div class="homepagePostReplyContent break_word list_style upload_img table_maxWidth" id="reply_content_<%= comment.id %>">
<% if comment.class == 'Journal' %> <% if comment.class == Journal %>
<% if comment.details.any? %> <% if comment.details.any? %>
<% details_to_strings(comment.details).each do |string| %> <% details_to_strings(comment.details).each do |string| %>
<p><%= string %></p> <p><%= string %></p>