From: Marius Balteanu Date: Sat, 22 Jan 2022 08:23:08 +0000 (+0000) Subject: Don't display "No Match Found!" when the inline autocomplete doesn't return any resul... X-Git-Tag: 5.0.0~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ff2752f7362366bde3918bc733bb6f08e7b24cce;p=redmine.git Don't display "No Match Found!" when the inline autocomplete doesn't return any result (#35215). Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21377 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index a2707e435..5552952cd 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1169,9 +1169,6 @@ function inlineAutoComplete(element) { }, menuItemTemplate: function (issue) { return sanitizeHTML(issue.original.label); - }, - noMatchTemplate: function () { - return ''; } }, { @@ -1189,12 +1186,10 @@ function inlineAutoComplete(element) { }, menuItemTemplate: function (wikiPage) { return sanitizeHTML(wikiPage.original.label); - }, - noMatchTemplate: function () { - return ''; } } - ] + ], + noMatchTemplate: "" }); tribute.attach(element);