listen on collection events to allow usage of field on collection

This commit is contained in:
Julien Fastré 2018-10-19 14:31:51 +02:00
parent 28d903697c
commit 03ee738bee
2 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,7 @@ Version 1.5.2
You must add `"dropzone": "^5.5.1"` to your dependencies in `packages.json` at the root project.
Master branch
=============
- the javascript for uploading a file now works within collections, listening to collection events.

View File

@ -227,3 +227,7 @@ var insertDownloadButton = (zone) => {
window.addEventListener('load', function(e) {
searchForZones(document);
});
window.addEventListener('collection-add-entry', function(e) {
searchForZones(e.detail.entry);
});