From 892b826df59203a920bfebbd2ac37ef62dcf411b Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 21 Feb 2017 21:48:48 +0100 Subject: Small style adjustment, add meta-enter posting. --- src/components/media_upload/media_upload.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/components/media_upload') diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js index 3f6fec5b..746970aa 100644 --- a/src/components/media_upload/media_upload.js +++ b/src/components/media_upload/media_upload.js @@ -16,7 +16,7 @@ const mediaUpload = { } }, methods: { - uploadFile(file) { + uploadFile (file) { const self = this const store = this.$store const formData = new FormData() @@ -40,8 +40,9 @@ const mediaUpload = { ], watch: { 'dropFiles': function (fileInfos) { - if (!this.uploading) + if (!this.uploading) { this.uploadFile(fileInfos[0]) + } } } } -- cgit v1.2.3-70-g09d2