From 00e43600c1cd64b62ebe742d3e78858a02610a75 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 18 May 2021 20:39:12 +0200 Subject: [PATCH] [ticket/13713] Adjust use of template and clean up mentions template PHPBB3-13713 --- phpBB/assets/javascript/mentions.js | 3 +-- phpBB/styles/prosilver/template/mentions_templates.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/assets/javascript/mentions.js b/phpBB/assets/javascript/mentions.js index 94ac595cf7..0c34b07b69 100644 --- a/phpBB/assets/javascript/mentions.js +++ b/phpBB/assets/javascript/mentions.js @@ -56,8 +56,7 @@ return defaultAvatar(type); } - const $avatarSpan = $mentionAvatarTemplate.clone(); - $avatarSpan.removeAttr('style'); // Remove automatically added display: none + const $avatarSpan = $($mentionAvatarTemplate.html()); if (data.html === '') { const $avatarImg = $avatarSpan.find('img'); diff --git a/phpBB/styles/prosilver/template/mentions_templates.html b/phpBB/styles/prosilver/template/mentions_templates.html index bd1820ea0e..bf1b2188fd 100644 --- a/phpBB/styles/prosilver/template/mentions_templates.html +++ b/phpBB/styles/prosilver/template/mentions_templates.html @@ -1 +1 @@ - +