CoreFiles by mySites.guru
accordion.js16 lines, 497 bytes, from wordpress-3.6-beta2.zip
Raw History Compare with 3.6-beta1
md5
11db3276e3d73d40cab89bb75639a082
sha1
027b016d6f94958436971a48c7e0d20facc5c409
sha256
2cf2d7c88e87fdd90e2fd8019acacafdf2bb0117530dc48d1a4192c27f30cb88
jQuery(document).ready( function($) {
	// Expand/Collapse
	$('.accordion-container').on( 'click keydown', '.accordion-section-title', function(e) {
		if ( e.type === 'keydown' && 13 !== e.which ) // "return" key
				return;
		e.preventDefault(); // Keep this AFTER the key filter above

		var section = $( this ).closest( '.accordion-section' );

		if ( section.hasClass('cannot-expand') )
			return;

		section.siblings( '.open' ).removeClass( 'open' );
		section.toggleClass( 'open' );
	});
});

The same content is in 4 releases, WordPress 3.6-beta1 to 3.6-beta4. See them all, or every version of this file.