Make WordPress Core

Changeset 23858


Ignore:
Timestamp:
03/29/2013 09:30:48 AM (12 years ago)
Author:
markjaquith
Message:

Simplify the accordion sibling-section-closing JS.

see #23890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/accordion.js

    r23856 r23858  
    1111            return;
    1212
    13         section.closest( '.accordion-container' ).find( '.accordion-section' ).not( section ).removeClass( 'open' );
     13        section.siblings( '.open' ).removeClass( 'open' );
    1414        section.toggleClass( 'open' );
    1515    });
Note: See TracChangeset for help on using the changeset viewer.