fix html injection in walkthrough

closes #8846
This commit is contained in:
Martin Raifer
2021-12-29 09:53:52 +01:00
parent d1410bce00
commit 282695325c
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -432,7 +432,7 @@ export function uiIntroArea(context, reveal) {
});
reveal('.entity-editor-pane',
helpHtml('intro.areas.describe_playground', { button: icon('#iD-icon-close', 'inline') }),
helpHtml('intro.areas.describe_playground', { button: { html: icon('#iD-icon-close', 'inline') } }),
{ duration: 300 }
);
+2 -2
View File
@@ -296,7 +296,7 @@ export function uiIntroBuilding(context, reveal) {
timeout(function() {
reveal('.entity-editor-pane',
helpHtml('intro.buildings.close', { button: icon('#iD-icon-close', 'inline') })
helpHtml('intro.buildings.close', { button: { html: icon('#iD-icon-close', 'inline') } })
);
}, 500);
@@ -624,7 +624,7 @@ export function uiIntroBuilding(context, reveal) {
timeout(function() {
reveal('.entity-editor-pane',
helpHtml('intro.buildings.close', { button: icon('#iD-icon-close', 'inline') })
helpHtml('intro.buildings.close', { button: { html: icon('#iD-icon-close', 'inline') } })
);
}, 500);
+1 -1
View File
@@ -338,7 +338,7 @@ export function uiIntroLine(context, reveal) {
timeout(function() {
reveal('.entity-editor-pane',
helpHtml('intro.lines.name_road', { button: icon('#iD-icon-close', 'inline') }),
helpHtml('intro.lines.name_road', { button: { html: icon('#iD-icon-close', 'inline') } }),
{ tooltipClass: 'intro-lines-name_road' }
);
}, 500);
+2 -2
View File
@@ -253,7 +253,7 @@ export function uiIntroPoint(context, reveal) {
});
reveal('.entity-editor-pane',
helpHtml('intro.points.add_close', { button: icon(href, 'inline') })
helpHtml('intro.points.add_close', { button: { html: icon(href, 'inline') } })
);
function continueTo(nextStep) {
@@ -350,7 +350,7 @@ export function uiIntroPoint(context, reveal) {
timeout(function() {
reveal('.entity-editor-pane',
helpHtml('intro.points.update_close', { button: icon('#iD-icon-close', 'inline') })
helpHtml('intro.points.update_close', { button: { html: icon('#iD-icon-close', 'inline') } })
);
}, 500);