Skip to content
Snippets Groups Projects
Commit e08b7670 authored by LucasC's avatar LucasC Committed by Michael Hamann
Browse files

XWIKI-22137: Tour button on the bottom right in French doesn't display...

XWIKI-22137: Tour button on the bottom right in French doesn't display properly characters with accents  (#3144)

* Removed the json escaping from the button text content
* Refactored the button creation

Co-authored-by: default avatarManuel Leduc <manuel.leduc@xwiki.com>
(cherry picked from commit cd2d7622)
parent d045463f
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,9 @@ ...@@ -172,7 +172,9 @@
// Create the popover // Create the popover
var popover = $('&lt;div class="popover-content"&gt;#tr("tour.popover.show.hint")&lt;/div&gt;').appendTo(buttonContainer); var popover = $('&lt;div class="popover-content"&gt;#tr("tour.popover.show.hint")&lt;/div&gt;').appendTo(buttonContainer);
// Create the button that will start the tour again // Create the button that will start the tour again
var button = $($jsontool.serialize("&lt;button id='tourResume' class='btn btn-default btn-xs'&gt;$services.icon.renderHTML('info') #tr('tour.popover.show')&lt;/button&gt;")).appendTo(buttonContainer); const button = $('&lt;button id=\'tourResume\' class=\'btn btn-default btn-xs\'&gt;&lt;/button&gt;')
.html("$escapetool.javascript($services.icon.renderHTML('info')) #tr('tour.popover.show')")
.appendTo(buttonContainer);
if (showPopover) { if (showPopover) {
buttonContainer.addClass('opened'); buttonContainer.addClass('opened');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment