add dropzone also onclick on comment-fake-form
This commit is contained in:
parent
512e5900e6
commit
f876a053df
1 changed files with 7 additions and 1 deletions
|
@ -67,8 +67,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
Dropzone.autoDiscover = false;
|
Dropzone.autoDiscover = false;
|
||||||
|
$('[id=comment-fake-text-{{$id}}]').on('focus', function() {
|
||||||
|
dzFactory.setupDropzone('#dropzone-{{$id}}', $('#comment-edit-text-{{$id}}'), {{$max_imagesize}});
|
||||||
|
$('[id=comment-fake-text-{{$id}}]') .prop('focus', null).off('focus')
|
||||||
|
$('[id=comment-{{$id}}]') .prop('click', null).off('click')
|
||||||
|
});
|
||||||
$('[id=comment-{{$id}}]').on('click', function() {
|
$('[id=comment-{{$id}}]').on('click', function() {
|
||||||
dzFactory.setupDropzone('#dropzone-{{$id}}', $('#comment-edit-text-{{$id}}'), {{$max_imagesize}});
|
dzFactory.setupDropzone('#dropzone-{{$id}}', $('#comment-edit-text-{{$id}}'), {{$max_imagesize}});
|
||||||
|
$('[id=comment-fake-text-{{$id}}]') .prop('focus', null).off('focus')
|
||||||
$('[id=comment-{{$id}}]') .prop('click', null).off('click')
|
$('[id=comment-{{$id}}]') .prop('click', null).off('click')
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue