summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-01-22 08:23:08 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-01-22 08:23:08 +0000
commitff2752f7362366bde3918bc733bb6f08e7b24cce (patch)
treeeda1794421d862bcc23b8467501786978da3af2c /public
parent8bb06c04ba9f094ba72d6a906d5df921da64647d (diff)
downloadredmine-ff2752f7362366bde3918bc733bb6f08e7b24cce.tar.gz
redmine-ff2752f7362366bde3918bc733bb6f08e7b24cce.zip
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
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js9
1 files 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 '<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);