mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#3342 Can't upload photo in mobile
This commit is contained in:
parent
93a20887a5
commit
94c46776c1
@ -269,7 +269,11 @@ $(document).ready(function () {
|
|||||||
// add trigger button for dropzone in mobile view
|
// add trigger button for dropzone in mobile view
|
||||||
if( /Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
if( /Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
||||||
$('#upload .modal-body').addClass('d-flex flex-column justify-content-center')
|
$('#upload .modal-body').addClass('d-flex flex-column justify-content-center')
|
||||||
$('.dropzone').addClass('hidden').parent().append('<a class="btn btn-primary text-white mobile-img">'+ uploadText +'</a>')
|
$('.dropzone')
|
||||||
|
.css('height', '0').css('width', '0').css('border', '0')
|
||||||
|
.parent().append('<a class="btn btn-primary text-white mobile-img">'+ uploadText +'</a>')
|
||||||
|
|
||||||
|
$('.dz-message').html('')
|
||||||
$('.mobile-img').on('click', () => {
|
$('.mobile-img').on('click', () => {
|
||||||
$('.dropzone').click()
|
$('.dropzone').click()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user