2015-10-12 17:19:55 +08:00
|
|
|
/*$('#message_subject').val("<%#= raw escape_javascript(@subject) %>");
|
|
|
|
$('#message_quote').html("<%#= raw escape_javascript(@temp.content.html_safe) %>");
|
2014-08-01 14:08:38 +08:00
|
|
|
//$('#message_content').val("<#%= raw escape_javascript(@content) %>");
|
2015-10-12 17:19:55 +08:00
|
|
|
$('#quote_quote').html("<%#= raw escape_javascript(@temp.content.html_safe) %>");
|
2014-08-01 14:08:38 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
showAndScrollTo("reply", "message_content");
|
|
|
|
$('#message_content').scrollTop = $('#message_content').scrollHeight - $('#message_content').clientHeight;
|
2015-10-12 17:19:55 +08:00
|
|
|
$("img").removeAttr("align");*/
|
2015-10-13 11:03:22 +08:00
|
|
|
if($("#reply_message_<%= @message.id%>").length > 0) {
|
|
|
|
$("#reply_message_<%= @message.id%>").replaceWith("<%= escape_javascript(render :partial => 'reply_message', :locals => {:reply => @message,:temp =>@temp,:subject =>@subject}) %>");
|
|
|
|
$(function(){
|
2015-10-16 10:42:07 +08:00
|
|
|
$('#reply_subject').val("<%= raw escape_javascript(@subject) %>");
|
|
|
|
$('#quote_quote').val("<%= raw escape_javascript(@temp.content.html_safe) %>");
|
2015-10-13 11:03:22 +08:00
|
|
|
init_activity_KindEditor_data(<%= @message.id%>,null,"85%");
|
|
|
|
});
|
|
|
|
}else if($("#reply_to_message_<%= @message.id%>").length >0) {
|
|
|
|
$("#reply_to_message_<%= @message.id%>").replaceWith("<p id='reply_message_<%= @message.id%>'></p>");
|
|
|
|
}
|