1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 03:29:23 +02:00

[ticket/13713] Adjust use of template and clean up mentions template

PHPBB3-13713
This commit is contained in:
Marc Alexander 2021-05-18 20:39:12 +02:00
parent 51097d937a
commit 00e43600c1
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 2 additions and 3 deletions

View File

@ -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');

View File

@ -1 +1 @@
<template data-id="mentions-avatar-span"><span class="mention-media-avatar"><img class="avatar" src="" width="" height="" alt="" /></span></template>
<template data-id="mentions-avatar-span"><span class="mention-media-avatar"><img class="avatar" src="" alt=""></span></template>