From 677254275c63c2fbcd43c0796995eb0e04bb7876 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 29 Mar 2013 07:50:40 +0000 Subject: [PATCH] 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 --- wp-admin/js/accordion.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/wp-admin/js/accordion.js b/wp-admin/js/accordion.js index cba83e0b7e..a5c63f28f9 100644 --- a/wp-admin/js/accordion.js +++ b/wp-admin/js/accordion.js @@ -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(); - }); -}); \ No newline at end of file