WordPress.org

Make WordPress Core

Changeset 41950


Ignore:
Timestamp:
10/19/2017 06:37:10 PM (2 years ago)
Author:
westonruter
Message:

Customize: Prevent re-highlighting "Add Items" button after available nav menu items pane has already been opened.

Amends [41930].
Props bpayton.
See #42114.

File:
1 edited

Legend:

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

    r41948 r41950  
    787787        }
    788788
    789         // Remove animation class in case it was already applied.
    790         button.removeClass( animationClass );
    791 
    792789        params.focusTarget.on( 'focusin', cancelReminder );
    793790        setTimeout( function() {
     
    796793            if ( ! canceled ) {
    797794                button.addClass( animationClass );
     795                button.one( 'animationend', function() {
     796                    /*
     797                     * Remove animation class to avoid situations in Customizer where
     798                     * DOM nodes are moved (re-inserted) and the animation repeats.
     799                     */
     800                    button.removeClass( animationClass );
     801                } );
    798802            }
    799803        }, params.delay );
Note: See TracChangeset for help on using the changeset viewer.