Support » Plugin: WP Shortcodes Plugin — Shortcodes Ultimate » [Plugin: Shortcodes Ultimate] Accordion: open spoiler does not close on click ( solution)

  • Resolved mkearns

    (@mkearns)


    Hi,

    great plugin and thank you for developing it! a small donation is on it’s way once I get paid.

    just a little bug in the Accordion functionality whereby an already open spoiler does not close when clicked.

    Specifically shortcodes-ultimate/js/init.js on line 19

    if ( !isAccordion )

    change to

    if ( isAccordion )

    regards,
    Mark

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks Mark.

    That solved my problem.

    shannon

    Yup, many thanks – sorted me too.
    (Now, if only there was a way to ‘roll up’ in IE8 as well as 9!

    Nikki

    (@paradieserl)

    Fantastic, thank you very much for sharing!

    Nikki

    Uhm, doesn’t work for me, if I change that condition accordion works but the spoiler does not close on click. I removed completely the condition and works correctly for both.

    However, is normal that accordion and spoiler showing the same way?
    This is my output http://i47.tinypic.com/9rqds3.jpg, the second spoiler is wrapped with accordion tag.

    [spoiler title=”Spoiler title” open=”0″ style=”1″]Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec mollis.[/spoiler]

    [accordion][spoiler]Content[/spoiler][/accordion]

    Thanks Mark, It worked perfectly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Shortcodes Ultimate] Accordion: open spoiler does not close on click ( solution)’ is closed to new replies.