Making WordPress.org

Ticket #2639: 2639.diff

File 2639.diff, 750 bytes (added by audrasjb, 8 years ago)

remove autocollapsing of siblings elements in faq items

  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-faq.js

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-faq.js b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-faq.js
    index 7a76dab..237dbcc 100644
    a b  
    1313                                return;
    1414                        }
    1515
    16                         if ( ! $question.is( '.open' ) ) {
    17                                 $question.siblings( '.open' ).toggleClass( 'open' ).attr( 'aria-expanded', false ).next( 'dd' ).slideToggle( 200 );
    18                         }
    19 
    2016                        $question.toggleClass( 'open' ).attr( 'aria-expanded', function( index, attribute ) {
    2117                                return 'true' !== attribute;
    2218                        } ).next( 'dd' ).slideToggle( 200 );