attach dropzone only when opening comment
This commit is contained in:
parent
d39781023e
commit
1a1a1246b6
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue