Skip to content
This repository has been archived by the owner. It is now read-only.

drag & drop sortable file_list #603

wants to merge 5 commits into from


None yet
2 participants
Copy link

commented Jun 28, 2014

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.

twoelevenjay added some commits Jun 27, 2014

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

jtsternberg added a commit that referenced this pull request Jun 29, 2014


This comment has been minimized.

Copy link

commented Jun 29, 2014

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.
You can’t perform that action at this time.