From d569a4e418276074cef04b58da1c935b2e4f3398 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 6 Nov 2015 10:35:26 -0500 Subject: [PATCH] FIX: Upload modal was broken --- .../javascripts/discourse/controllers/upload-selector.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/upload-selector.js.es6 b/app/assets/javascripts/discourse/controllers/upload-selector.js.es6 index 694722ccd..8f3b5a5e5 100644 --- a/app/assets/javascripts/discourse/controllers/upload-selector.js.es6 +++ b/app/assets/javascripts/discourse/controllers/upload-selector.js.es6 @@ -29,7 +29,7 @@ export default Ember.Controller.extend(ModalFunctionality, { actions: { upload() { if (this.get('local')) { - $('#reply-control').fileupload('add', { fileInput: $('#filename-input') }); + $('.wmd-controls').fileupload('add', { fileInput: $('#filename-input') }); } else { const imageUrl = this.get('imageUrl') || ''; const imageLink = this.get('imageLink') || ''; @@ -40,8 +40,8 @@ export default Ember.Controller.extend(ModalFunctionality, { } else { toolbarEvent.addText(imageUrl); } - this.send('closeModal'); } + this.send('closeModal'); }, useLocal() {