Defect #33846 » sanitize_html_v2.patch
| public/javascripts/application.js | ||
|---|---|---|
|
}
|
||
|
});
|
||
|
function sanitizeHTML(string) {
|
||
|
var temp = document.createElement('span');
|
||
|
temp.textContent = string;
|
||
|
return temp.innerHTML;
|
||
|
}
|
||
|
function checkAll(id, checked) {
|
||
|
$('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
|
||
|
}
|
||
| ... | ... | |
|
lookup: 'label',
|
||
|
fillAttr: 'label',
|
||
|
requireLeadingSpace: true,
|
||
|
selectTemplate: function (issue) {
|
||
|
return '#' + issue.original.id;
|
||
|
selectTemplate: function ({ original }) {
|
||
|
return '#' + original.id;
|
||
|
},
|
||
|
menuItemTemplate: function ({ original }) {
|
||
|
return sanitizeHTML(original.label);
|
||
|
},
|
||
|
noMatchTemplate: function () {
|
||
|
return '<span style:"visibility: hidden;"></span>';
|
||