mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Don't replace the already entered comment when quoting a previous comment.
git-svn-id: http://svn.redmine.org/redmine/trunk@15990 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7b3f2b51c0
commit
c586449eb3
@ -1,4 +1,9 @@
|
||||
$('#issue_notes').val("<%= raw escape_javascript(@content) %>");
|
||||
showAndScrollTo("update");
|
||||
|
||||
var notes = $('#issue_notes').val();
|
||||
if (notes > "") { notes = notes + "\n\n"}
|
||||
|
||||
$('#issue_notes').blur().focus().val(notes + "<%= raw escape_javascript(@content) %>");
|
||||
<%
|
||||
# when quoting a private journal, check the private checkbox
|
||||
if @journal && @journal.private_notes?
|
||||
@ -6,5 +11,3 @@ $('#issue_notes').val("<%= raw escape_javascript(@content) %>");
|
||||
$('#issue_private_notes').prop('checked', true);
|
||||
<% end %>
|
||||
|
||||
showAndScrollTo("update", "notes");
|
||||
$('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user