2015-07-02 08:43:41 +08:00
|
|
|
$('#journal_issue_note').html("<%= raw escape_javascript(@content.html_safe) %>");
|
|
|
|
$("input[name='issue_quote_new']").val("<%= raw escape_javascript(@content.html_safe) %>");
|
2013-08-01 10:33:49 +08:00
|
|
|
<%
|
|
|
|
# when quoting a private journal, check the private checkbox
|
2015-07-02 08:43:41 +08:00
|
|
|
if @journal && @journal.private_notes?
|
2013-08-01 10:33:49 +08:00
|
|
|
%>
|
|
|
|
$('#issue_private_notes').attr('checked', true);
|
|
|
|
<% end %>
|
|
|
|
showAndScrollTo("update", "notes");
|
|
|
|
$('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight;
|
2013-08-11 10:36:55 +08:00
|
|
|
|
|
|
|
$('#reference_user_id').val("<%= @id %>");
|