diff options
Diffstat (limited to 'app/views/journals/new.js.erb')
-rw-r--r-- | app/views/journals/new.js.erb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/journals/new.js.erb b/app/views/journals/new.js.erb index 677bb8d63..78ec5f360 100644 --- a/app/views/journals/new.js.erb +++ b/app/views/journals/new.js.erb @@ -1,3 +1,10 @@ -$('#notes').val("<%= raw escape_javascript(@content) %>"); +$('#issue_notes').val("<%= raw escape_javascript(@content) %>"); +<% + # when quoting a private journal, check the private checkbox + if @journal && @journal.private_notes? +%> +$('#issue_private_notes').attr('checked', true); +<% end %> + showAndScrollTo("update", "notes"); $('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight; |