Scroll to notes section instead of top of edit form when quoting issue content (#43085).

Patch by kyohei yamada (user:kyamada23).


git-svn-id: https://svn.redmine.org/redmine/trunk@24521 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2026-03-21 03:23:59 +00:00
parent 9e40e75802
commit 4fd19473b2
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
showAndScrollTo("update");
$('#update').show();
showAndScrollTo("add_notes");
var notes = $('#issue_notes').val();
if (notes > "") { notes = notes + "\n\n"}

View File

@@ -167,6 +167,7 @@ class JournalsControllerTest < Redmine::ControllerTest
assert_response :success
assert_equal 'text/javascript', response.media_type
assert_include 'showAndScrollTo("add_notes");', response.body
assert_include '> This is an issue', response.body
end
@@ -189,6 +190,7 @@ class JournalsControllerTest < Redmine::ControllerTest
)
assert_response :success
assert_equal 'text/javascript', response.media_type
assert_include 'showAndScrollTo("add_notes");', response.body
assert_include 'Redmine Admin wrote in #note-1:', response.body
assert_include '> A comment with a private version', response.body
end