Revert accordion-delay code from [22400] that was causing problems. props lessbloat. fixes #21283.
git-svn-id: http://core.svn.wordpress.org/trunk@22563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
927c2c48d5
commit
7b74142364
|
@ -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