Make WordPress Core

Changeset 22563


Ignore:
Timestamp:
11/14/2012 05:03:33 AM (12 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/customize-controls.js

    r22512 r22563  
    843843
    844844        // Temporary accordion code.
    845         var accordionFrozen = false;
    846845        $('.customize-section-title').bind('click keydown', function( event ) {
    847846
     
    851850            var clicked = $( this ).parents( '.customize-section' );
    852851
    853             if ( clicked.hasClass('cannot-expand') || accordionFrozen )
     852            if ( clicked.hasClass('cannot-expand') )
    854853                return;
    855 
    856             // Don't want to fire focus and click at same time
    857             accordionFrozen = true;
    858             setTimeout(function () {
    859                 accordionFrozen = false;
    860             }, 400);
    861854
    862855            // Scroll up if on #customize-section-title_tagline
Note: See TracChangeset for help on using the changeset viewer.