Defect #32063 ยป patch.diff
public/javascripts/application.js (working copy) | ||
---|---|---|
1013 | 1013 |
// do not attach if Tribute is already initialized |
1014 | 1014 |
if (element.dataset.tribute === 'true') {return;} |
1015 | 1015 | |
1016 |
const issuesUrl = element.dataset.issuesUrl;
|
|
1017 |
const usersUrl = element.dataset.usersUrl;
|
|
1016 |
var issuesUrl = element.dataset.issuesUrl;
|
|
1017 |
var usersUrl = element.dataset.usersUrl;
|
|
1018 | 1018 | |
1019 |
const remoteSearch = function(url, cb) {
|
|
1020 |
const xhr = new XMLHttpRequest();
|
|
1019 |
var remoteSearch = function(url, cb) {
|
|
1020 |
var xhr = new XMLHttpRequest();
|
|
1021 | 1021 |
xhr.onreadystatechange = function () |
1022 | 1022 |
{ |
1023 | 1023 |
if (xhr.readyState === 4) { |
... | ... | |
1033 | 1033 |
xhr.send(); |
1034 | 1034 |
}; |
1035 | 1035 | |
1036 |
const tribute = new Tribute({
|
|
1036 |
var tribute = new Tribute({
|
|
1037 | 1037 |
trigger: '#', |
1038 | 1038 |
values: function (text, cb) { |
1039 | 1039 |
remoteSearch(issuesUrl + text, function (issues) { |