mirror of
https://github.com/redmine/redmine.git
synced 2026-01-18 13:33:04 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user