Auto-complete issues #id in the search form (#32052).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-09-21 07:52:16 +00:00
parent 7df0230d67
commit f5bbb0317a
3 changed files with 13 additions and 2 deletions

View File

@@ -1036,6 +1036,9 @@ function inlineAutoComplete(element) {
const tribute = new Tribute({
trigger: '#',
values: function (text, cb) {
if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') {
$(element).attr('autocomplete', 'off');
}
remoteSearch(issuesUrl + text, function (issues) {
return cb(issues);
});