socialforge/app/views/journals/new.js.erb

12 lines
500 B
Plaintext
Raw Normal View History

$('#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
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;
$('#reference_user_id').val("<%= @id %>");