Make WordPress Core

Changeset 22491


Ignore:
Timestamp:
11/09/2012 05:44:00 AM (11 years ago)
Author:
koopersmith
Message:

Pinking shears. see #21283.

File:
1 edited

Legend:

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

    r22484 r22491  
    9595                        statuses.hide();
    9696                };
    97            
     97
    9898            var toggleFreeze = false;
    99            
     99
    100100            // Support the .dropdown class to open/close complex elements
    101101            this.container.on( 'click focus', '.dropdown', function( event ) {
    102102                event.preventDefault();
    103                
     103
    104104                if (!toggleFreeze)
    105105                    control.container.toggleClass('open');
    106                
     106
    107107                // Don't want to fire focus and click at same time
    108108                toggleFreeze = true;
     
    222222            // Bind tab switch events
    223223            this.library.children('ul').on( 'click keydown', 'li', function( event ) {
    224                
     224
    225225                if ( event.type === 'keydown' &&  13 !== event.which )
    226226                    return;
    227                
     227
    228228                var id  = $(this).data('customizeTab'),
    229229                    tab = control.tabs[ id ];
     
    834834        var accordionFrozen = false;
    835835        $('.customize-section-title').bind('click keydown', function( event ) {
    836            
     836
    837837            if ( event.type === 'keydown' &&  13 !== event.which ) // enter
    838838                    return;
    839            
     839
    840840            var clicked = $( this ).parents( '.customize-section' );
    841841
    842842            if ( clicked.hasClass('cannot-expand') || accordionFrozen )
    843843                return;
    844            
     844
    845845            // Don't want to fire focus and click at same time
    846846            accordionFrozen = true;
     
    848848                accordionFrozen = false;
    849849            }, 400);
    850            
     850
    851851            // Scroll up if on #customize-section-title_tagline
    852852            if ('customize-section-title_tagline' === clicked.attr('id'))
     
    869869            event.preventDefault();
    870870        });
    871        
     871
    872872        $('.back').keydown( function( event ) {
    873873            if ( 9 === event.which ) // tab
Note: See TracChangeset for help on using the changeset viewer.