Skip to content

Commit

Permalink
fix: editing buttons missing in admin when file present
Browse files Browse the repository at this point in the history
Fixes #1499
  • Loading branch information
pajowu committed Dec 5, 2024
1 parent 8f7f96f commit 9474997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filer/templates/admin/filer/widgets/admin_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</span>
</div>

<div class="js-filer-dropzone filer-dropzone{% if object %} js-object-attached{% endif %}"
<div class="js-filer-dropzone filer-dropzone{% if object %} js-object-attached{% endif %} "
data-url="{% url 'admin:filer-ajax_upload' %}"
data-max-files="1"
{% if max_filesize %}data-max-filesize="{{ max_filesize|safe }}"{% endif %}>
Expand All @@ -26,7 +26,7 @@
<span class="filerFile js-file-selector">
{% if object %}
{% if object.file.exists %}
<a href="{{ object.url }}" target="_blank">{% file_icon object detail=True %}</a>
<a href="{{ object.url }}" target="_blank">{% file_icon object detail="thumbnail" %}</a>
&nbsp;<span class="description_text">{{ object.label }}</span>
{% else %}
{% file_icon object %}
Expand Down

0 comments on commit 9474997

Please sign in to comment.