mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Customize: Prevent re-highlighting "Add Items" button after available nav menu items pane has already been opened.
Amends [41930]. Props bpayton. See #42114. Built from https://develop.svn.wordpress.org/trunk@41950 git-svn-id: http://core.svn.wordpress.org/trunk@41784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8105f1460
commit
ea21ad6cc1
@ -786,15 +786,19 @@
|
||||
canceled = true;
|
||||
}
|
||||
|
||||
// Remove animation class in case it was already applied.
|
||||
button.removeClass( animationClass );
|
||||
|
||||
params.focusTarget.on( 'focusin', cancelReminder );
|
||||
setTimeout( function() {
|
||||
params.focusTarget.off( 'focusin', cancelReminder );
|
||||
|
||||
if ( ! canceled ) {
|
||||
button.addClass( animationClass );
|
||||
button.one( 'animationend', function() {
|
||||
/*
|
||||
* Remove animation class to avoid situations in Customizer where
|
||||
* DOM nodes are moved (re-inserted) and the animation repeats.
|
||||
*/
|
||||
button.removeClass( animationClass );
|
||||
} );
|
||||
}
|
||||
}, params.delay );
|
||||
|
||||
|
8
wp-admin/js/customize-controls.min.js
vendored
8
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-beta3-41949';
|
||||
$wp_version = '4.9-beta3-41950';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user