mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Remove duplicated code that was accidentally committed in [23417].
fixes #23889. props DrewAPicture. git-svn-id: https://develop.svn.wordpress.org/trunk@23855 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c42dea13f
commit
677254275c
@ -15,37 +15,3 @@ jQuery(document).ready( function($) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
jQuery(document).ready( function($) {
|
||||
// Expand/Collapse
|
||||
$('.accordion-section-title').on('click keydown', function( event ) {
|
||||
|
||||
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
||||
return;
|
||||
|
||||
var clicked = $( this ).closest( '.accordion-section' );
|
||||
|
||||
if ( clicked.hasClass('cannot-expand') )
|
||||
return;
|
||||
|
||||
clicked.closest( '.accordion-container' ).find( '.accordion-section' ).not( clicked ).removeClass( 'open' );
|
||||
clicked.toggleClass( 'open' );
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
jQuery(document).ready( function($) {
|
||||
// Expand/Collapse
|
||||
$('.accordion-section-title').on('click keydown', function( event ) {
|
||||
|
||||
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
||||
return;
|
||||
|
||||
var clicked = $( this ).closest( '.accordion-section' );
|
||||
|
||||
if ( clicked.hasClass('cannot-expand') )
|
||||
return;
|
||||
|
||||
clicked.closest( '.accordion-container' ).find( '.accordion-section' ).not( clicked ).removeClass( 'open' );
|
||||
clicked.toggleClass( 'open' );
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user