mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 07:46:02 +01:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user