From 5abf857705a6e2eb1a81c29bf906999fd91624f4 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 22 Feb 2017 22:33:28 +0100 Subject: [PATCH] Style fixes. --- src/components/media_upload/media_upload.js | 4 ++-- src/components/post_status_form/post_status_form.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js index 985916cfec..7888d999b7 100644 --- a/src/components/media_upload/media_upload.js +++ b/src/components/media_upload/media_upload.js @@ -35,14 +35,14 @@ const mediaUpload = { }) }, fileDrop (e) { - if(e.dataTransfer.files.length > 0) { + if (e.dataTransfer.files.length > 0) { e.preventDefault() // allow dropping text like before this.uploadFile(e.dataTransfer.files[0]) } }, fileDrag (e) { let types = e.dataTransfer.types - if(types.contains('Files')) { + if (types.contains('Files')) { e.dataTransfer.dropEffect = 'copy' } else { e.dataTransfer.dropEffect = 'none' diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 42ebcd48ab..4a409115d4 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -150,7 +150,7 @@ const PostStatusForm = { } }, fileDrag (e) { - e.dataTransfer.dropEffect = 'copy'; + e.dataTransfer.dropEffect = 'copy' } } }