• Resolved OttlaK

    (@ottlak)


    Hi,

    I would like to use your accordion in a div controlled by the jquery tinyscrollbar plugin.

    To work properly I have to use the tinyscrollbar update method (custom scrollbar appears when accordion items are opened). Therefore I need a bindable event so that I can inject the update after the animation,
    for example a click function that is called in header.php, like this:

    $(“#accordion”).on(“click”, function() {
    $(‘#scrollbar1’).tinyscrollbar_update();
    };
    });

    As accordion.min.js is called directly, I have no idea how to do it.
    I would be grateful for any suggestions…

    https://www.ads-software.com/plugins/accordion-shortcodes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    You could probably add an additional event listener for when each title is clicked in your own scripts file. Something like:

    jQuery('.accordion-title').click(function() {
        // Your code here
    });
    Thread Starter OttlaK

    (@ottlak)

    Thanks, I really appreciate your help.
    I still can’t figure it out though, I’m probably making some dumb mistake…
    I will get in touch with the developer of tinyscrollbar to see if I am using its functions right.
    Thanks anyway, your tip took a great step forward!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using plugin together with jquery tinyscrollbar’ is closed to new replies.