forms: use widget name (not field id) to get file upload widgets (#52357)
gitea-wip/wcs/pipeline/head Build started... Details
gitea/wcs/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2021-03-29 14:03:55 +02:00
parent ca2d3974a3
commit ad359c1620
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 %}