• Resolved ulihake

    (@ulih)


    Hello Pippin.

    If you have more than one gateway attached the javascript code that toggles the terms and the show and hide links to trigger the behaviour fires more than once.

    I changed your javascript code starting at line 89 of edd-terms-per-product.php in the following way:

    `echo ‘<script type=”text/javascript”>
    jQuery(document).ready(function($) {
    $(“.edd_per_product_terms_links”).unbind(“click”).bind(“click”, function(e) {
    e.preventDefault();
    e.stopPropagation();
    var terms = $(this).attr(“href”);
    var parent = $(this).parent();
    $(terms).slideToggle();
    parent.find(“a”).toggle();
    });
    });
    </script>’;`

    Maybe the problem is related to something else on my page, but it may be helpful if somebody else runs into this annoying behavior that the terms slide open just to close again.

    Thanks.
    uh

    https://wordpress.org/plugins/edd-terms-per-product/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Toggle Script’ is closed to new replies.