From 65ad66155d35a7f74e67556f111e0e9c2213f4cc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 4 Dec 2023 04:21:15 +0300 Subject: scripts: fix camera icon --- src/main/assets/scripts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index 94f79424..f3aea835 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -27,7 +27,7 @@ function autosize(el) { * @returns {string} HTML markup for the selected icon */ function evilIcon(name) { - return `
` + return `` } /* eslint-disable only-ascii/only-ascii */ @@ -284,7 +284,7 @@ function showCommentForm(mid, rid) { ` formTarget.insertAdjacentHTML('afterend', formHtml) formTarget.remove() - + renderIcons() let form = /** @type {HTMLFormElement} */ (reply.querySelector('form')) let submitButton = /** @type {HTMLInputElement} */ (form.querySelector('input[type="submit"]')) @@ -395,6 +395,7 @@ function openDialog(html, image) { document.addEventListener('keydown', closeDialogListener) document.querySelector('#dialogb').addEventListener('click', closeDialog) document.querySelector('#dialogc').addEventListener('click', closeDialog) + renderIcons() } function closeDialog() { -- cgit v1.2.3