Use HTML5 data attributes instead of id #82

Closed
webberig opened this Issue Mar 22, 2013 · 3 comments

Comments

Projects
None yet
3 participants

I have a change request.

When the script serializes the data, it uses the list item's id attribute as the key. It's my oppinion that the id attribute's function is of a more generic nature. HTML 5 allows custom data-* attributes that serve a specific function, in this case have a "key" for nestedSortable.

Would it be possible to use data attributes instead, and maybe add an option to set the name of this attribute ?

Owner

mjsarfatti commented Mar 25, 2013

That's how regular sortable works, I wouldn't change that.

Owner

mjsarfatti commented Apr 2, 2013

Again, the plugin reflects Sortable's default behavior (http://api.jqueryui.com/sortable/#method-serialize). As you can see you can always customize the attr it uses.

mjsarfatti closed this Apr 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment