diff --git a/app/views/journals/new.js.erb b/app/views/journals/new.js.erb index 0f832f37f..be3d2b3d8 100644 --- a/app/views/journals/new.js.erb +++ b/app/views/journals/new.js.erb @@ -1,4 +1,5 @@ -showAndScrollTo("update"); +$('#update').show(); +showAndScrollTo("add_notes"); var notes = $('#issue_notes').val(); if (notes > "") { notes = notes + "\n\n"} diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb index f6549910a..271336aaa 100644 --- a/test/functional/journals_controller_test.rb +++ b/test/functional/journals_controller_test.rb @@ -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