diff options
author | Go MAEDA <maeda@farend.jp> | 2022-09-28 09:20:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-09-28 09:20:39 +0000 |
commit | 534103f42db71debc38b55126c34e460340b8513 (patch) | |
tree | a066785bda84c663b9b9af3df9eb7d7ad46e860f /app | |
parent | 59852ed8453a1a63574de0345b78108a1a90a62d (diff) | |
download | redmine-534103f42db71debc38b55126c34e460340b8513.tar.gz redmine-534103f42db71debc38b55126c34e460340b8513.zip |
Merged r21867 from trunk to 5.0-stable (#37473).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21868 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ef1cc2fc8..3bb8a602d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -334,7 +334,7 @@ module ApplicationHelper def toggle_link(name, id, options={}) onclick = +"$('##{id}').toggle(); " - onclick << (options[:focus] ? "$('##{options[:focus]}').focus(); " : "this.blur(); ") + onclick << (options[:focus] ? "$('##{options[:focus]}:visible').focus(); " : "this.blur(); ") onclick << "$(window).scrollTop($('##{options[:focus]}').position().top); " if options[:scroll] onclick << "return false;" link_to(name, "#", :onclick => onclick) |