forms: use widget name (not field id) to get file upload widgets (#52357)
This commit is contained in:
parent
6632a3133b
commit
d0f01686a0
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue