You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload by clicking upload icon under each thumbnail
You cannot rearrange image, although drag icon is avaliable.
Cause
sortable.js is looking for $(".file-preview-thumbnails .file-initial-thumbs"), but single uploaded images are in $(".file-preview-thumbnails .file-initial-thumbs"). I think they should be moved to div.file-initial-thumbs.
The text was updated successfully, but these errors were encountered:
koxu1996
changed the title
Cannot rearrange files uploaded by clicking icons.
Cannot rearrange files uploaded by clicking upload icons.
Dec 30, 2016
Yes the problem will be that all such images need to be in ONE single container with file-initial-thumbs class for sortable plugin to drag and drop within that for any rearrangement.
It will however cause some UI problems. This means with the above change when clicking the single upload button in the thumbnail, the uploaded images derived in initial preview will move to one container and that will cause a UI problem as if you have 5 thumbnails and you upload IMAGE_1 and IMAGE_5 via single upload button, then IMAGE_1 and IMAGE_5 will be moved to beginning within file-initial-thumbs with init preview, while IMAGE_2, IMAGE_3, and IMAGE_4 will appear after that as not uploaded. This may not be user friendly as user will perceive IMAGE_5 to have moved before IMAGE_2.
I suggest that it remain the way that the sortable for such case should not be enabled until someone refreshes the page and the initial preview is derived based on the batch sent by server (for sortable to be then used effectively to rearrange).
Steps to reproduce the issue
Cause
sortable.js is looking for$(".file-preview-thumbnails .file-initial-thumbs"), but single uploaded images are in $ (".file-preview-thumbnails .file-initial-thumbs"). I think they should be moved to
div.file-initial-thumbs
.The text was updated successfully, but these errors were encountered: