From 5de43930e9ad8ddd15b0e2a88a485f60629f0931 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 22 Oct 2014 14:37:35 -0400 Subject: [PATCH] FIX: The whole page was a drag-n-drop target even when there were multiple file upload components. --- app/assets/javascripts/discourse/mixins/upload.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/mixins/upload.js.es6 b/app/assets/javascripts/discourse/mixins/upload.js.es6 index bd17c145213..fb64d94b636 100644 --- a/app/assets/javascripts/discourse/mixins/upload.js.es6 +++ b/app/assets/javascripts/discourse/mixins/upload.js.es6 @@ -21,6 +21,7 @@ export default Em.Mixin.create({ dataType: "json", fileInput: $upload, formData: { image_type: this.get('type') }, + dropZone: this.$(), pasteZone: this.$() });