From ff2752f7362366bde3918bc733bb6f08e7b24cce Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sat, 22 Jan 2022 08:23:08 +0000 Subject: [PATCH] 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 --- public/javascripts/application.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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); -- 2.39.5