summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-11-25 23:31:09 +0000
committerGo MAEDA <maeda@farend.jp>2024-11-25 23:31:09 +0000
commit5621938fb1b66fe5b8051c4b72e1aad87cd76cfe (patch)
treef1cbbc839663561b9db38449f9b86529c65bc244 /app
parent8b83d51463a7f26b409ee37cc616185d9865331d (diff)
downloadredmine-5621938fb1b66fe5b8051c4b72e1aad87cd76cfe.tar.gz
redmine-5621938fb1b66fe5b8051c4b72e1aad87cd76cfe.zip
Merged r23306 from trunk to 6.0-stable (#41818).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23312 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/application.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index 068ac98d8..d5172381c 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -760,8 +760,10 @@ $(document).ready(function(){
} else {
$(".drdn").removeClass("expanded");
drdn.addClass("expanded");
- selected = $('.drdn-items a.selected'); // Store selected project
- selected.focus(); // Calling focus to scroll to selected project
+ if ($(this).parent('#project-jump').length) {
+ selected = $('.drdn-items a.selected'); // Store selected project
+ selected.focus(); // Calling focus to scroll to selected project
+ }
if (!isMobile()) {
drdn.find(".autocomplete").focus();
}