Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass relation field sortable to js settings #3542

Merged
merged 2 commits into from
Dec 10, 2018
Merged

Pass relation field sortable to js settings #3542

merged 2 commits into from
Dec 10, 2018

Conversation

boboldehampsink
Copy link
Contributor

@boboldehampsink boboldehampsink commented Dec 10, 2018

This passes the $sortable attribute to the elementSelect js settings. This improves extensibility.

For example, it makes this plugin really non-sortable (whereas $sortable = false didn't do anything in the front-end before): https://github.com/robuust/craft-reverserelations/blob/master/src/fields/ReverseEntries.php#L45

@brandonkelly brandonkelly merged commit ebeb1fc into craftcms:develop Dec 10, 2018
brandonkelly added a commit that referenced this pull request Dec 10, 2018
@boboldehampsink boboldehampsink deleted the pass-relation-field-sortable-to-js-settings branch December 11, 2018 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants