diff options
author | Go MAEDA <maeda@farend.jp> | 2024-11-25 00:57:43 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-11-25 00:57:43 +0000 |
commit | 3c53715262006ccd1e11ce290fd36b488386cd86 (patch) | |
tree | 23be553576b9cdf02ad562599ed0028590db3235 | |
parent | 2846179e993f3a2182a99e6c336ee58ccade30f4 (diff) | |
download | redmine-3c53715262006ccd1e11ce290fd36b488386cd86.tar.gz redmine-3c53715262006ccd1e11ce290fd36b488386cd86.zip |
Fix redundant tooltip appearing after clicking the ellipsis button in the action menus (#41818).
Patch by Takenori TAKAKI (user:takenory).
git-svn-id: https://svn.redmine.org/redmine/trunk@23306 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/assets/javascripts/application.js | 6 |
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(); } |