Project

General

Profile

Bug #69211 » suggest-wizard-js.patch

Stefan Berger, 2015-08-25 10:27

View differences:

typo3/sysext/backend/Resources/Public/JavaScript/FormEngineSuggest.js
},
// Rendering of each item
formatResult: function(suggestion, value) {
return '<a class="autocomplete-suggestion-link" href="#" data-label="' + suggestion.data.label + '" data-table="' + suggestion.data.table + '" data-uid="' + suggestion.data.uid + '">' +
var stripHTML = function(html) {
var tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
}
return '<a class="autocomplete-suggestion-link" href="#" data-label="' + stripHTML(suggestion.data.label) + '" data-table="' + suggestion.data.table + '" data-uid="' + suggestion.data.uid + '">' +
suggestion.data.sprite + suggestion.data.text +
'</a>';
},
(2-2/2)