socialforge/app/views/blog_comments/quote.js.erb

10 lines
773 B
Plaintext
Raw Normal View History

2015-10-24 15:34:43 +08:00
if($("#reply_message_<%= @blogComment.id%>").length > 0) {
2015-10-29 17:09:03 +08:00
$("#reply_message_<%= @blogComment.id%>").replaceWith("<%= escape_javascript(render :partial => 'blog_comments/simple_ke_reply_form', :locals => {:reply => @blogComment,:temp =>@temp,:subject =>@subject,:course_id=>@course_id}) %>");
2015-10-24 15:34:43 +08:00
$(function(){
$('#reply_subject').val("<%= raw escape_javascript(@subject) %>");
$('#quote_quote').val("<%= raw escape_javascript(@temp.content.html_safe) %>");
2015-12-14 17:13:57 +08:00
init_activity_KindEditor_data(<%= @blogComment.id%>,null,"85%", "<%=@blogComment.class.to_s%>");
2015-10-24 15:34:43 +08:00
});
}else if($("#reply_to_message_<%= @blogComment.id%>").length >0) {
$("#reply_to_message_<%= @blogComment.id%>").replaceWith("<p id='reply_message_<%= @blogComment.id%>'></p>");
}