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:
parent
a861d88597
commit
3841bfba82
@ -842,7 +842,6 @@
|
||||
}());
|
||||
|
||||
// Temporary accordion code.
|
||||
var accordionFrozen = false;
|
||||
$('.customize-section-title').bind('click keydown', function( event ) {
|
||||
|
||||
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
||||
@ -850,15 +849,9 @@
|
||||
|
||||
var clicked = $( this ).parents( '.customize-section' );
|
||||
|
||||
if ( clicked.hasClass('cannot-expand') || accordionFrozen )
|
||||
if ( clicked.hasClass('cannot-expand') )
|
||||
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
|
||||
if ('customize-section-title_tagline' === clicked.attr('id'))
|
||||
$('.wp-full-overlay-sidebar-content').scrollTop(0);
|
||||
|
Loading…
Reference in New Issue
Block a user