forms: use widget name (not field id) to get file upload widgets (#52357)

This commit is contained in:
Frédéric Péters 2021-03-29 14:03:55 +02:00
parent 6632a3133b
commit d0f01686a0
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
<script>
$(function() {
$('[data-field-id="{{ widget.field.id }}"]').each($.WcsFileUpload.prepare);
$('[data-widget-name="{{ widget.name }}"]').each($.WcsFileUpload.prepare);
});
</script>
{% endblock %}