Revert accordion-delay code from [22400] that was causing problems. props lessbloat. fixes #21283.

git-svn-id: https://develop.svn.wordpress.org/trunk@22563 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-14 05:03:33 +00:00
parent a861d88597
commit 3841bfba82
1 changed files with 1 additions and 8 deletions

View File

@ -842,7 +842,6 @@
}()); }());
// Temporary accordion code. // Temporary accordion code.
var accordionFrozen = false;
$('.customize-section-title').bind('click keydown', function( event ) { $('.customize-section-title').bind('click keydown', function( event ) {
if ( event.type === 'keydown' && 13 !== event.which ) // enter if ( event.type === 'keydown' && 13 !== event.which ) // enter
@ -850,15 +849,9 @@
var clicked = $( this ).parents( '.customize-section' ); var clicked = $( this ).parents( '.customize-section' );
if ( clicked.hasClass('cannot-expand') || accordionFrozen ) if ( clicked.hasClass('cannot-expand') )
return; return;
// Don't want to fire focus and click at same time
accordionFrozen = true;
setTimeout(function () {
accordionFrozen = false;
}, 400);
// Scroll up if on #customize-section-title_tagline // Scroll up if on #customize-section-title_tagline
if ('customize-section-title_tagline' === clicked.attr('id')) if ('customize-section-title_tagline' === clicked.attr('id'))
$('.wp-full-overlay-sidebar-content').scrollTop(0); $('.wp-full-overlay-sidebar-content').scrollTop(0);