Forum Replies Created
-
AuthorPosts
-
Gabe ShackleMemberIt’s creating the notice fine, but since the Piklist admin styles load in the footer after the WP styles, it doesn’t pick up the green left border from the .updated class.
Gabe ShackleMemberThe main one I noticed was the different types of admin messages. I’ve attached a couple screenshots showing what’s happening.
Attachments:
You must be logged in to view attached files.
Gabe ShackleMemberAh, I see that now. I hadn’t tried dragging the entire meta box. Here’s a quick fix that adds that condition in as well:
.on('sortstart', '.meta-box-sortables.ui-sortable, .piklist-field.ui-sortable', function(event, ui).on('sortstop sortreceive', '.meta-box-sortables.ui-sortable, .piklist-field.ui-sortable', function(event, ui)
Gabe ShackleMemberLooks like ZIPs don’t work either so I’ve posted the updated admin.js here: http://hereswhatidid.com/media/admin.js.zip
Gabe ShackleMemberI’ve tracked it down to the admin.js file in Piklist. On lines 1052 and 1073 where you’re assigning the ‘sortstart’ and ‘sortstop sortreceive’ events, it’s not being specific enough and picks up the editors that are within ACF. A simple fix to make sure that those events are targeting the correct elements prevents the error from occurring and the sorting works as expected. I’ve attached my version of the admin.js file with this fix in place.
Gabe ShackleMemberA little further investigation points to it being specifically related to any flexible content field layout that includes the WYSIWYG editor. Flexible content layouts that do not have any WYSIWYGs in them do not trigger the error.
Gabe ShackleMemberHas there been any progress on this one? I’m using 0.9.9.7 and it’s doing the opposite for me. ACF flexible content fields drag and drop fine but the Piklist add_more items create the large amount of empty placeholders. It’s also throwing the following JS error:
“Uncaught TypeError: Cannot read property ‘onpageload’ of undefined”
Gabe ShackleMemberThat did it, thanks!
-
AuthorPosts