1

Do Copy breaks in 3.5 (jQuery 1.8.2)

Home Forums WPAlchemy Do Copy breaks in 3.5 (jQuery 1.8.2)

Tagged: 

This topic contains 14 replies, has 9 voices, and was last updated by  rspilhaus 1 year, 6 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2462

    frosty
    Participant

    Doing a test site with the latest WP 3.5-beta which is using jQuery 1.8.2 and noticed that DoCopy isn’t working, but when I revert to older jQuery it works fine.

    #2470

    theboywonders
    Participant

    Frosty,

    I may have a similar bug. Does your docopy break mean that a docopy button is NOT producing a repeatable item, or is it a case where docopy is cloning the content from the previous item into the new item?

    #2471

    frosty
    Participant

    docopy no longer produces a repeatable item. But removeall and remove item still works.

    #2472

    frosty
    Participant

    Found the issue. Seems in MetaBox.php:1406 the .tocopy class needs to be before the :first pseudo element.

    Change:

    var the_group = $(‘.wpa_group-’+ the_name +’:first.tocopy’, p);

    To:

    var the_group = $(‘.wpa_group-’+ the_name +’.tocopy:first’, p);

    • This reply was modified 2 years ago by  frosty.
    #2506

    Dimas
    Key Master

    version v1.5.2 fixes the issue .. my apologies for not getting to this sooner ..

    #2507

    theboywonders
    Participant

    Launching site on Monday …. 1 month

    Updated to WP 3.5 … 30 seconds

    Noticing that 3.5 WP breaks repeatable¬† do-copy … 1 hr

    E-mailing Kathy while panicking … 1/2 hr

    Figuring out how to rollback to 3.4.2 … 1 hr

    Figuring out how to deregistering 1.8.2 … 4 hrs

    Realizing that Frosty + Dimas = code gangstas … PRICELE$$

    Thanks guys

    #2526

    zignorp
    Participant

    Hmmm, I copied 1.5.2 from github, I see the version listed, but this issue is still happening to me.

    This is the line I’m seeing in the new version of MetaBox.php, which doesn’t seem to be working:

    var the_group = $(‘.wpa_group-’+ the_name +’.tocopy’, p).first();

    * @version1.5.2

    Thanks,

    Wendy

    #2528

    zignorp
    Participant

    Is it necessary to roll back jquery as well?

    #2529

    zignorp
    Participant

    Just checked, and that’s not the problem for me, as I’m explicitly running 1.7.1 and still no docopy.

    #2530

    zignorp
    Participant

    Oops, it was my error, there was a copy of metabox.php in the theme directory, so I was updating the wrong version. Apologies! All is well.

    #2540

    adrien
    Participant

    Aooch thanks mates…!

    Been looking for this exact problem! You saved me a few hours of search in the source code…
    Thanks for the 1.5.2 Update, works like a charm now…;)

     

    #2541

    mccawphoto
    Participant

    The issue I am having in WP 3.5.1 is that when I have created several repeatable items and then click “Save” it adds another black repeatable item. I click “Remove” and it goes away and then appears again when I click “Save”.

    Any idea what is causing this or how to fix it?

    Thanks!

    #2543

    carlosnewman
    Participant

    That was a bug, and I guess, even in the latest versions, that also occurs.

    Regards,
    Carlos Newman of web design canada service

    #2546

    caratage
    Participant

    Thought: ouch! It broke after the update.¬†But Frosty’s code seems to work. Thank you!

    #2548

    rspilhaus
    Participant

    Hmm – I’m having trouble with this when coupled with a media upload box – no new boxes after the first one (you can delete it and re-add it, but only 1). 1.5.2 didn’t seem to fix this issue. Works fine when you strip out the media uploader component.

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

One response to “Do Copy breaks in 3.5 (jQuery 1.8.2)”

  1. Keith

    Same issue here unfortunetly :(