mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
fix rendering of html of improveOSM issues
This commit is contained in:
@@ -57,11 +57,11 @@ function updateRtree(item, replace) {
|
||||
}
|
||||
|
||||
function linkErrorObject(d) {
|
||||
return `<a class="error_object_link">${d}</a>`;
|
||||
return { html: `<a class="error_object_link">${d}</a>` };
|
||||
}
|
||||
|
||||
function linkEntity(d) {
|
||||
return `<a class="error_entity_link">${d}</a>`;
|
||||
return { html: `<a class="error_entity_link">${d}</a>` };
|
||||
}
|
||||
|
||||
function pointAverage(points) {
|
||||
|
||||
@@ -15,7 +15,7 @@ export function uiImproveOsmDetails(context) {
|
||||
if (d.desc) return d.desc;
|
||||
const issueKey = d.issueKey;
|
||||
d.replacements = d.replacements || {};
|
||||
d.replacements.default = t.html('inspector.unknown'); // special key `default` works as a fallback string
|
||||
d.replacements.default = { html: t.html('inspector.unknown') }; // special key `default` works as a fallback string
|
||||
return t.html(`QA.improveOSM.error_types.${issueKey}.description`, d.replacements);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export function uiImproveOsmDetails(context) {
|
||||
descriptionEnter
|
||||
.append('div')
|
||||
.attr('class', 'qa-details-description-text')
|
||||
.text(issueDetail);
|
||||
.html(issueDetail);
|
||||
|
||||
// If there are entity links in the error message..
|
||||
let relatedEntities = [];
|
||||
|
||||
@@ -8,7 +8,7 @@ export function uiImproveOsmHeader() {
|
||||
function issueTitle(d) {
|
||||
const issueKey = d.issueKey;
|
||||
d.replacements = d.replacements || {};
|
||||
d.replacements.default = t.html('inspector.unknown'); // special key `default` works as a fallback string
|
||||
d.replacements.default = { html: t.html('inspector.unknown') }; // special key `default` works as a fallback string
|
||||
return t.html(`QA.improveOSM.error_types.${issueKey}.title`, d.replacements);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export function uiImproveOsmHeader() {
|
||||
headerEnter
|
||||
.append('div')
|
||||
.attr('class', 'qa-header-label')
|
||||
.text(issueTitle);
|
||||
.html(issueTitle);
|
||||
}
|
||||
|
||||
improveOsmHeader.issue = function(val) {
|
||||
|
||||
Reference in New Issue
Block a user