2017-02-23 16:12:29 +08:00
|
|
|
<% if params[:is_project]%>
|
|
|
|
$("#reply_message_<%= @jour.id %>").
|
|
|
|
<% else %>
|
2017-02-21 14:38:05 +08:00
|
|
|
if($("#reply_message_<%= @jour.id %>").length > 0) {
|
|
|
|
$("#reply_message_<%= @jour.id %>").replaceWith("<%= escape_javascript(render :partial => 'training_tasks/training_tasks_reply_ke_form') %>");
|
|
|
|
$(function(){
|
|
|
|
sd_create_editor_from_data(<%= @jour.id %>, null, "100%", "<%= @jour.class.name %>");
|
|
|
|
});
|
|
|
|
}else if($("#reply_to_message_<%= @jour.id %>").length >0) {
|
|
|
|
$("#reply_to_message_<%= @jour.id %>").replaceWith("<p id='reply_message_<%= @jour.id %>'></p>");
|
2017-02-23 16:12:29 +08:00
|
|
|
}
|
|
|
|
<% end %>
|