回复框 设置姓名 七八糟
This commit is contained in:
parent
a01123c5bf
commit
7130347f39
|
@ -2,7 +2,7 @@
|
|||
<span class="portrait">
|
||||
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>
|
||||
</span>
|
||||
<span class="body">
|
||||
<div class="body">
|
||||
<% id = 'project_respond_form_'+ reply.id.to_s %>
|
||||
<span style="color: green;"><%= link_to reply.user.name, user_path(reply.user) %>: </span>
|
||||
<span style="max-width: 80%; word-wrap: break-word;"> <%= reply.notes %></span>
|
||||
|
@ -10,10 +10,15 @@
|
|||
|
||||
<p style="margin-top: 4px;">
|
||||
<span style="color: rgb(172, 174, 177)"><%= format_time reply.created_on %></span>
|
||||
<span style="float: right;"><%= toggle_link l(:label_projects_feedback_respond), id, {:focus => 'project_respond'} %></span>
|
||||
</p>
|
||||
<span style="float: right;">
|
||||
<%#= toggle_link l(:label_projects_feedback_respond), id, {:focus => 'project_respond'} %>
|
||||
<%= link_to l(:label_projects_feedback_respond),'',
|
||||
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{reply.user.show_name}: '); return false;"}
|
||||
%>
|
||||
</span>
|
||||
<div id='<%=id%>' style="display: none;">
|
||||
</p>
|
||||
</div>
|
||||
<div id='<%=id%>' style="clear:both; display: none;">
|
||||
<%= render :partial => "words/new_respond", :locals => {:journal => journal, :m_reply_id => m_reply_id} %>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
|
|
@ -55,7 +55,11 @@ ul.message-for-user li {
|
|||
</span>
|
||||
<span class="font_lighter"> <%= l :label_comment_time %>: <%= format_time journal.created_on %></span>
|
||||
<% 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'} %>
|
||||
|
||||
<%= link_to l(:label_projects_feedback_respond),'',
|
||||
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.show_name}:'); return false;"}
|
||||
%>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
<div id=<%= ids %> style="display: none; width: 80%; margin: auto;">
|
||||
|
|
|
@ -590,6 +590,11 @@ function blockEventPropagation(event) {
|
|||
event.preventDefault();
|
||||
}
|
||||
|
||||
function toggleAndSettingWordsVal(parent_widget, text_widget, value){
|
||||
text_widget.val(value)
|
||||
parent_widget.toggle(400)
|
||||
}
|
||||
|
||||
$(document).ready(setupAjaxIndicator);
|
||||
$(document).ready(hideOnLoad);
|
||||
$(document).ready(addFormObserversForDoubleSubmit);
|
||||
|
|
Loading…
Reference in New Issue