Explorar el Código

Update ComposeModal

Daniel Supernault hace 5 años
padre
commit
84e92980bd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      resources/assets/js/components/ComposeModal.vue

+ 2 - 1
resources/assets/js/components/ComposeModal.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
 <div>
 <div>
-	<input type="file" id="pf-dz" name="media" class="w-100 h-100 d-none file-input" draggable="true" v-bind:accept="config.uploader.media_types" multiple="">
+	<input type="file" id="pf-dz" name="media" class="w-100 h-100 d-none file-input" v-bind:accept="config.uploader.media_types">
 	<div class="timeline">
 	<div class="timeline">
 		<div v-if="uploading">
 		<div v-if="uploading">
 			<div class="card status-card card-md-rounded-0 w-100 h-100 bg-light py-3" style="border-bottom: 1px solid #f1f1f1">
 			<div class="card status-card card-md-rounded-0 w-100 h-100 bg-light py-3" style="border-bottom: 1px solid #f1f1f1">
@@ -616,6 +616,7 @@ export default {
 		mediaWatcher() {
 		mediaWatcher() {
 			let self = this;
 			let self = this;
 			$(document).on('change', '#pf-dz', function(e) {
 			$(document).on('change', '#pf-dz', function(e) {
+				e.preventDefault();
 				self.mediaUpload();
 				self.mediaUpload();
 			});
 			});
 		},
 		},