mirror of
https://github.com/redmine/redmine.git
synced 2026-04-02 02:31:17 +02:00
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:
@@ -1,4 +1,5 @@
|
||||
showAndScrollTo("update");
|
||||
$('#update').show();
|
||||
showAndScrollTo("add_notes");
|
||||
|
||||
var notes = $('#issue_notes').val();
|
||||
if (notes > "") { notes = notes + "\n\n"}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user