attach dropzone only when opening comment
This commit is contained in:
parent
300af36d3d
commit
7604e21acc
1 changed files with 4 additions and 1 deletions
|
@ -67,5 +67,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
Dropzone.autoDiscover = false;
|
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>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue