Style fixes.

This commit is contained in:
Roger Braun 2017-02-22 22:33:28 +01:00
parent b9be4708e6
commit 5abf857705
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -150,7 +150,7 @@ const PostStatusForm = {
}
},
fileDrag (e) {
e.dataTransfer.dropEffect = 'copy';
e.dataTransfer.dropEffect = 'copy'
}
}
}