Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

drag & drop sortable file_list #603

Closed
wants to merge 5 commits into from
Closed

drag & drop sortable file_list #603

wants to merge 5 commits into from

Conversation

twoelevenjay
Copy link

I recently gave the file_list field type a drag & drop ability to reorder the files. I created a fork because this is a feature that I assume most Wordpress users have gotten to know with the new media uploader.

I considered creating an argument that allowed this to be turned on or off like the repeater fields. However I could not think of a reason that it would need to be turned off.

changed the != to !== in order to update file_list when the array has been reordered by the new .sortable() feature.
Added the jQuery-ui .sortable() to the file_list field type. Now these items are sortable by drag and drop.
set cursor property to "move" for .attach_list li img
set cursor property to "move" for .attach_list li img
@jtsternberg
Copy link
Contributor

Thank you for submitting! This has been merged into the trunk branch: 227dfe0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants