]> source.dussan.org Git - redmine.git/commitdiff
Don't display "No Match Found!" when the inline autocomplete doesn't return any resul...
authorMarius Balteanu <marius.balteanu@zitec.com>
Sat, 22 Jan 2022 08:23:08 +0000 (08:23 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sat, 22 Jan 2022 08:23:08 +0000 (08:23 +0000)
Patch by Takashi Kato.

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

public/javascripts/application.js

index a2707e43566a5d972f4eb4291cc14886c20907f7..5552952cd54bc970ade6f568689048ca9d4befa2 100644 (file)
@@ -1169,9 +1169,6 @@ function inlineAutoComplete(element) {
           },
           menuItemTemplate: function (issue) {
             return sanitizeHTML(issue.original.label);
-          },
-          noMatchTemplate: function () {
-            return '<span style:"visibility: hidden;"></span>';
           }
         },
         {
@@ -1189,12 +1186,10 @@ function inlineAutoComplete(element) {
           },
           menuItemTemplate: function (wikiPage) {
             return sanitizeHTML(wikiPage.original.label);
-          },
-          noMatchTemplate: function () {
-            return '<span style:"visibility: hidden;"></span>';
           }
         }
-      ]
+      ],
+      noMatchTemplate: ""
     });
 
     tribute.attach(element);