Project

General

Profile

Defect #41096 ยป 0001-Fix-that-syntax-auto-complete-does-not-work.patch

Katsuya HIDAKA, 2024-08-06 12:30

View differences:

app/assets/javascripts/application.js
if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') {
$(element).attr('autocomplete', 'off');
}
// When triggered with a text starting with ##, like ##a, the search query will be #a.
// To avoid this, remove the first # from the search query.
if (text) {
text = text.replace(/^#/, '');
}
remoteSearch(getDataSource('issues') + encodeURIComponent(text), function (issues) {
return cb(issues);
});
    (1-1/1)