@@ -1,4 +1,9 | |||||
1 | $('#issue_notes').val("<%= raw escape_javascript(@content) %>"); |
|
1 | showAndScrollTo("update"); | |
|
2 | ||||
|
3 | var notes = $('#issue_notes').val(); | |||
|
4 | if (notes > "") { notes = notes + "\n\n"} | |||
|
5 | ||||
|
6 | $('#issue_notes').blur().focus().val(notes + "<%= raw escape_javascript(@content) %>"); | |||
2 | <% |
|
7 | <% | |
3 | # when quoting a private journal, check the private checkbox |
|
8 | # when quoting a private journal, check the private checkbox | |
4 | if @journal && @journal.private_notes? |
|
9 | if @journal && @journal.private_notes? | |
@@ -6,5 +11,3 $('#issue_notes').val("<%= raw escape_javascript(@content) %>"); | |||||
6 | $('#issue_private_notes').prop('checked', true); |
|
11 | $('#issue_private_notes').prop('checked', true); | |
7 | <% end %> |
|
12 | <% end %> | |
8 |
|
13 | |||
9 | showAndScrollTo("update", "notes"); |
|
|||
10 | $('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight; |
|
General Comments 0
You need to be logged in to leave comments.
Login now