Defect #41096 ยป 0001-Fix-that-syntax-auto-complete-does-not-work.patch
| 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);
|
||
|
});
|
||