Defect #41096 ยป 0001-Fix-that-syntax-auto-complete-does-not-work.patch
app/assets/javascripts/application.js | ||
---|---|---|
1167 | 1167 |
if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') { |
1168 | 1168 |
$(element).attr('autocomplete', 'off'); |
1169 | 1169 |
} |
1170 |
// When triggered with a text starting with ##, like ##a, the search query will be #a. |
|
1171 |
// To avoid this, remove the first # from the search query. |
|
1172 |
if (text) { |
|
1173 |
text = text.replace(/^#/, ''); |
|
1174 |
} |
|
1170 | 1175 |
remoteSearch(getDataSource('issues') + encodeURIComponent(text), function (issues) { |
1171 | 1176 |
return cb(issues); |
1172 | 1177 |
}); |