mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Merge pull request #971 from openclassify/muammertop
#3342 Can't upload photo in mobile
This commit is contained in:
commit
e2a9413df1
@ -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