parent
1dbccd81d6
commit
8ce2dbc4b8
@ -0,0 +1,27 @@
|
|||||||
|
<div class="ReplyToMessageContainer borderBottomNone " id="reply_to_message_<%= @issue.id%>">
|
||||||
|
|
||||||
|
<div class="homepagePostReplyPortrait mr15 imageFuzzy" id="reply_image_<%= @issue.id%>">
|
||||||
|
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(@issue.author_id), :alt => "用户头像" %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ReplyToMessageInputContainer mb10">
|
||||||
|
<div nhname='new_message_<%= @issue.id%>' style="display:none;">
|
||||||
|
<%= form_for('new_form',:url => add_reply_issue_path(@issue.id),:method => "post", :remote => true) do |f|%>
|
||||||
|
<%#= kindeditor_tag :notes,"",:height=>"33",:minHeight=>"33",:editor_id=>"issues_reply_editor"%>
|
||||||
|
<!--<div class="cl"></div>-->
|
||||||
|
<input type="hidden" name="quote" value=""/>
|
||||||
|
<input type="hidden" name="issue_id" value="<%=@issue.id%>"/>
|
||||||
|
<div nhname='toolbar_container_<%= @issue.id%>' ></div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @issue.id%>' name="notes"></textarea>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<span nhname='contentmsg_<%= @issue.id%>' class="fl"></span>
|
||||||
|
<a id="new_message_submit_btn_<%= @issue.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<!--<a href="javascript:void(0);" onclick="issues_reply_editor.sync();$(this).parent().submit();" class="homepagePostReplySubmit postReplySubmit fl mt5">发送</a>-->
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
$("#reply_div_<%= @issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_replies', :locals => {:issue => @issue,:replies_all_i=>0}) %>");
|
||||||
|
$(".homepagePostReplyBannerCount").html('回复(<%= Issue.find( @issue).journals.count %>)')
|
||||||
|
sd_create_editor_from_data(<%= @issue.id%>, null, "100%");
|
@ -0,0 +1,9 @@
|
|||||||
|
if($("#reply_message_<%= @jour.id%>").length > 0) {
|
||||||
|
$("#reply_message_<%= @jour.id%>").replaceWith("<%= escape_javascript(render :partial => 'issues/issue_reply_ke_form') %>");
|
||||||
|
$(function(){
|
||||||
|
$('input[name=quote]').val("<%= raw escape_javascript(@tempContent.html_safe) %>");
|
||||||
|
sd_create_editor_from_data(<%= @issue.id%>, null, "100%");
|
||||||
|
});
|
||||||
|
}else if($("#reply_to_message_<%= @issue.id%>").length >0) {
|
||||||
|
$("#reply_to_message_<%= @issue.id%>").replaceWith("<p id='reply_message_<%= @jour.id%>'></p>");
|
||||||
|
}
|
Loading…
Reference in new issue