Chris@1295: $('#issue_notes').val("<%= raw escape_javascript(@content) %>"); Chris@1295: <% Chris@1295: # when quoting a private journal, check the private checkbox Chris@1295: if @journal && @journal.private_notes? Chris@1295: %> Chris@1295: $('#issue_private_notes').attr('checked', true); Chris@1295: <% end %> Chris@1295: Chris@1295: showAndScrollTo("update", "notes"); Chris@1295: $('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight;