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