From 7cb1fc0cf309059df8810439bcb1010ea0d5d8a6 Mon Sep 17 00:00:00 2001
From: Artur Paikin
@@ -20,16 +18,6 @@ This example showcases sourcing an UMD dist build straight from a CDN.
- On this page we're using the following HTML snippet: + On this page we're using the following HTML & JS snippet:
{% include_code lang:html cdn/app.html %} - -- Along with this JavaScript: -
-{% include_code lang:js cdn/app.es6 %} - - diff --git a/website/themes/uppy/source/uppy/uppy.js b/website/themes/uppy/source/uppy/uppy.js index b18a16578..db3f37514 100644 --- a/website/themes/uppy/source/uppy/uppy.js +++ b/website/themes/uppy/source/uppy/uppy.js @@ -2201,8 +2201,8 @@ var DragDrop = (function (_Plugin) { Object.assign(this.opts, opts); // get the element where Drag & Drop event will occur - this.dropzone = document.querySelector(this.opts.selector); - this.dropzoneInput = document.querySelector('.UppyDragDrop-input'); + this.dropzone = document.querySelectorAll(this.opts.selector)[0]; + this.dropzoneInput = document.querySelectorAll('.UppyDragDrop-input')[0]; this.status = document.querySelectorAll('.UppyDragDrop-status')[0]; @@ -2244,6 +2244,7 @@ var DragDrop = (function (_Plugin) { value: function listenForEvents() { var _this = this; + console.log('translation is all like: ' + this.core.translate('Choose a file')); console.log('waiting for some files to be dropped on ' + this.opts.selector); if (this.isDragDropSupported) { @@ -2294,7 +2295,6 @@ var DragDrop = (function (_Plugin) { value: function handleDrop(e) { console.log('all right, someone dropped something here...'); var files = e.dataTransfer.files; - console.log(files); // const formData = new FormData(this.dropzone); // console.log('pizza', formData);