修复回复框默认展开的bug

This commit is contained in:
nieguanghui 2013-12-25 15:57:19 +08:00
parent 60489bdbfd
commit b716b60c0b
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,7 @@
} }
</style> </style>
<ul> <ul>
<% fetch_user_leaveWord_reply.each do |reply|%> <% fetch_user_leaveWord_reply(journal).each do |reply|%>
<li style="display: block; padding-bottom: 4px;"> <li style="display: block; padding-bottom: 4px;">
<div class="inner-right" style="float: left; height: 100%; "> <div class="inner-right" style="float: left; height: 100%; ">
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %> <%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>

View File

@ -35,10 +35,8 @@
<%= textilizable journal.notes%> <%= textilizable journal.notes%>
</span> </span>
<span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span> <span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span>
<% if @user == User.current %>
<% ids = 'project_respond_form_'+ journal.id.to_s%> <% ids = 'project_respond_form_'+ journal.id.to_s%>
<%= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %> <%= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %>
<% end %>
</span> </span>
<div style="clear: both;"></div> <div style="clear: both;"></div>
<div id=<%= ids %> style="display: none; width: 80%; margin: auto;"> <div id=<%= ids %> style="display: none; width: 80%; margin: auto;">