Просмотр исходного кода

ensure not to confirm when remove profile image

Yuki Takei 7 лет назад
Родитель
Сommit
c2dc4825e9
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/server/views/me/index.html

+ 1 - 2
src/server/views/me/index.html

@@ -158,8 +158,7 @@
             </p>
             <p>
             <form id="remove-attachment" action="/_api/attachments.remove" method="post" class="form-horizontal"
-                style="{% if not user.imageAttachment %}display: none{% endif %}"
-                onsubmit="return window.confirm('{{ t('Delete this image?') }}');">
+                style="{% if not user.imageAttachment %}display: none{% endif %}">
               <input type="hidden" name="_csrf" value="{{ csrf() }}">
               <input type="hidden" name="attachment_id" value="{{ user.imageAttachment.id }}">
               <button type="submit" class="btn btn-danger">{{ t('Delete Image') }}</button>