1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-11 13:15:20 +00:00

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
This commit is contained in:
Marius Balteanu 2022-01-22 08:23:08 +00:00
parent 8bb06c04ba
commit ff2752f736

View File

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