'Chosen' Script in GD causing Conflict with Gravity Forms?

This topic contains 3 replies, has 3 voices, and was last updated by  Stiofan O’Connor 10 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #27815

    sguilliard
    Expired Member
    Post count: 25

    I’ve contacted Gravity about this and here is there reply. With GD disabled, the problem does indeed disappear:

    “The enhanced ui for the drop down field and multi select field is powered the third-party developed chosen.js script. To prevent issues due to multiple copies of a script being included on a page Gravity Forms is not loading it’s copy of the script as it is already being loaded by WooCommerce. However, the geodirectory plugin is loading a second copy of the script:

    <script type=’text/javascript’ src=’http://www.warwickshireproject.co.uk/wp-content/plugins/geodirectory/geodirectory-assets/js/chosen.jquery.js?ver=1.3.4′></script>

    You’ll want to contact the developer of that plugin and let them know about this so they can change the handle they use to enqueue the script to ‘chosen’ just like WooCommerce and Gravity Forms use.”

    Can this be changed? Alternatively, I’m happy to make the necessary code changes myself until a new version is released?

    #27822

    Paolo
    Site Admin
    Post count: 31211

    Hi,
    I’ve flagged this for Stiofan.
    Thx

    #27864

    sguilliard
    Expired Member
    Post count: 25
    This reply has been marked as private.
    #27990

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    I will change this in core but you can also make the change now in admin_functions.php lines 84 and 85 change the line “geodirectory-chosen-jquery” to “chosen”

    and geodirectory_template_tags.php lines 45 and 46 do the same.

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount