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:
parent
51097d937a
commit
00e43600c1
@ -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');
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user