2015-10-13 11:03:22 +08:00
|
|
|
if($("#reply_message_<%= @message.id%>").length > 0) {
|
2016-07-04 14:14:51 +08:00
|
|
|
$("#reply_message_<%= @message.id%>").replaceWith("<%= escape_javascript(render :partial => 'reply_message', :locals => {:reply => @message}) %>");
|
2015-10-13 11:03:22 +08:00
|
|
|
$(function(){
|
2016-07-04 14:14:51 +08:00
|
|
|
/*$('#reply_subject').val("<%#= raw escape_javascript(@subject) %>");
|
|
|
|
$('#quote_quote').val("<%#= raw escape_javascript(@temp.content.html_safe) %>");*/
|
2016-01-29 16:55:07 +08:00
|
|
|
sd_create_editor_from_data(<%= @message.id%>,null,"100%", "<%=@message.class.to_s%>");
|
2015-10-13 11:03:22 +08:00
|
|
|
});
|
|
|
|
}else if($("#reply_to_message_<%= @message.id%>").length >0) {
|
|
|
|
$("#reply_to_message_<%= @message.id%>").replaceWith("<p id='reply_message_<%= @message.id%>'></p>");
|
|
|
|
}
|