Bug #69211 » suggest-wizard-js.patch
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>';
|
||
},
|
- « Previous
- 1
- 2
- Next »