]> source.dussan.org Git - redmine.git/commitdiff
Fix redundant tooltip appearing after clicking the ellipsis button in the action...
authorGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 00:57:43 +0000 (00:57 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 00:57:43 +0000 (00:57 +0000)
Patch by Takenori TAKAKI (user:takenory).

git-svn-id: https://svn.redmine.org/redmine/trunk@23306 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/javascripts/application.js

index 068ac98d8ce6244afe9e89537ff4ec3081d9fc48..d5172381c3a109d7baf3f9fdea6c728d7261f692 100644 (file)
@@ -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();
       }