From 009c6ee820f507386741f158c6283abfbdcc6ecd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 8 Oct 2019 22:56:38 -0600 Subject: [PATCH] Update ComposeModal.vue, added a caption counter. Fixes #1722 --- resources/assets/js/components/ComposeModal.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 5ee92427b..911e8bca3 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -110,7 +110,8 @@
- + +

{{composeTextLength}}/{{config.uploader.max_caption_length}}

@@ -474,9 +475,11 @@ export default { }, mediaDragAndDrop() { + let self = this; let pdz = document.getElementById('content'); + function allowDrag(e) { e.dataTransfer.dropEffect = 'copy'; e.preventDefault(); @@ -484,10 +487,10 @@ export default { function handleDrop(e) { e.preventDefault(); - let dz = document.querySelector('#pf-dz'); - dz.files = e.dataTransfer.files; - $('#composeModal').modal('show'); - self.mediaUpload(); + // let dz = document.querySelector('#pf-dz'); + // dz.files = e.dataTransfer.files; + // $('#composeModal').modal('show'); + // self.mediaUpload(); } window.addEventListener('dragenter', function(e) {