-
Notifications
You must be signed in to change notification settings - Fork 62
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
Compatibility issue with repeatable fields #73
Comments
@ctlcltd How are you calling this to make it work? |
the call is implicit on line 2 of the snippet, on the `cmb2_add_row` hook
event
Il mar 3 ott 2023, 01:53 Ipstenu (Mika Epstein) ***@***.***>
ha scritto:
… @ctlcltd <https://github.com/ctlcltd> How are you calling this to make it
work?
—
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABSBHJYW72GD2YPVZUDKMLX5NHXDAVCNFSM6AAAAAA2TXQMPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTHEZTINRWGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ctlcltd I mean, where in the PHP. I can make this a random named JS file but I gotta enqueue it. There are a bunch of different ways to do that, and I was curious what yours was. |
The snippet is a buffer fix, to apply it I used a js file hooked to the
`admin_enqueue_scripts` hook from a php file of the theme. A definitive
solution to be compatible with repeatable would be to modify the
js/attached-posts.js script, something similar to the snippet but
incorporated into the original source.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cmb2-attached-posts won't works with CMB2 repeatable fields.
Fields are cloned but not resetted, and there is an error with assigning draggable/droppable jquery-ui to cloned elements.
I solved this way:
👋
The text was updated successfully, but these errors were encountered: