From 27bdb245980eba63de90f650f93265961fe3179d Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Thu, 24 Feb 2022 21:04:33 +0300 Subject: [PATCH] refactor: Use span for icons --- src/components/subtitleuploader/subtitleuploader.js | 2 +- .../subtitleuploader/subtitleuploader.template.html | 4 ++-- src/controllers/user/menu/index.html | 2 +- src/plugins/comicsPlayer/plugin.js | 2 +- src/plugins/pdfPlayer/plugin.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/subtitleuploader/subtitleuploader.js b/src/components/subtitleuploader/subtitleuploader.js index 500b1706b..066d40b54 100644 --- a/src/components/subtitleuploader/subtitleuploader.js +++ b/src/components/subtitleuploader/subtitleuploader.js @@ -61,7 +61,7 @@ function setFiles(page, files) { reader.onload = (function (theFile) { return function () { // Render file. - const html = 'subtitles' + escape(theFile.name) + ''; + const html = '' + escape(theFile.name) + ''; page.querySelector('#subtitleOutput').innerHTML = html; page.querySelector('#fldUpload').classList.remove('hide'); diff --git a/src/components/subtitleuploader/subtitleuploader.template.html b/src/components/subtitleuploader/subtitleuploader.template.html index 3f4944de5..9c25a2117 100644 --- a/src/components/subtitleuploader/subtitleuploader.template.html +++ b/src/components/subtitleuploader/subtitleuploader.template.html @@ -1,5 +1,5 @@
- +

${HeaderUploadSubtitle}

@@ -14,7 +14,7 @@

${HeaderAddUpdateSubtitle}

diff --git a/src/controllers/user/menu/index.html b/src/controllers/user/menu/index.html index 66a07f2a1..53f0d6df7 100644 --- a/src/controllers/user/menu/index.html +++ b/src/controllers/user/menu/index.html @@ -14,7 +14,7 @@
- tap_and_play +
${QuickConnect}
diff --git a/src/plugins/comicsPlayer/plugin.js b/src/plugins/comicsPlayer/plugin.js index 69882b65b..c1383fbe9 100644 --- a/src/plugins/comicsPlayer/plugin.js +++ b/src/plugins/comicsPlayer/plugin.js @@ -144,7 +144,7 @@ export class ComicsPlayer { elem.innerHTML = `
- +
`; dialogHelper.open(elem); diff --git a/src/plugins/pdfPlayer/plugin.js b/src/plugins/pdfPlayer/plugin.js index 62f80d12e..d568e42ef 100644 --- a/src/plugins/pdfPlayer/plugin.js +++ b/src/plugins/pdfPlayer/plugin.js @@ -171,7 +171,7 @@ export class PdfPlayer { let html = ''; html += ''; html += '
'; - html += ''; + html += ''; html += '
'; elem.id = 'pdfPlayer';