Skip to content

Commit 91e289c

Browse files
committed
Make cypress happy.
1 parent e70c725 commit 91e289c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

templates/pages/admin/user/user_picture_field.html.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,14 @@
5454
{% set picture_field %}
5555
<div
5656
{% if can_update %}
57-
class="cursor-pointer flex-shrink-1" title="{{ __('Change picture') }}" role="button" data-bs-toggle="modal" data-bs-target="#modal_picture_{{ rand_field }}" id="change_picture_{{ rand_field }}"
57+
class="cursor-pointer flex-shrink-1" title="{{ __('Change picture') }}" role="button" data-bs-toggle="modal" data-bs-target="#modal_picture_{{ rand_field }}"
5858
{% endif %}>
5959
<div data-current-avatar>{{ avatar }}</div>
6060
<div data-default-avatar class="d-none">{{ avatar_initials }}</div>
6161
<div class="avatar avatar-xl rounded d-none" data-preview-avatar>
6262
<img src="" alt="{{ __('Preview') }}" class="img-fluid" />
6363
</div>
6464
</div>
65-
<script type="text/javascript">
66-
new bootstrap.Tooltip(document.getElementById('change_picture_{{ rand_field }}'));
67-
</script>
68-
6965
{% if can_update %}
7066
{% set modal_content %}
7167
<div class="text-center">

0 commit comments

Comments
 (0)