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