attach dropzone only when opening comment
This commit is contained in:
parent
d39781023e
commit
1a1a1246b6
|
@ -67,5 +67,8 @@
|
|||
|
||||
<script>
|
||||
Dropzone.autoDiscover = false;
|
||||
dzFactory.setupDropzone('#dropzone-{{$id}}', $('#comment-edit-text-{{$id}}'), {{$max_imagesize}});
|
||||
$('[id=comment-{{$id}}]').on('click', function() {
|
||||
dzFactory.setupDropzone('#dropzone-{{$id}}', $('#comment-edit-text-{{$id}}'), {{$max_imagesize}});
|
||||
$('[id=comment-{{$id}}]').prop('click', null).off('click')
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user