mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Menus: Avoid displaying two spinners when adding selected menu items.
Fixes #35682. Built from https://develop.svn.wordpress.org/trunk@36427 git-svn-id: http://core.svn.wordpress.org/trunk@36394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82f59fc6ef
commit
c9e5edd637
@ -179,7 +179,7 @@ var wpNavMenu;
|
||||
return false;
|
||||
|
||||
// Show the ajax spinner
|
||||
t.find( '.spinner' ).addClass( 'is-active' );
|
||||
t.find( '.button-controls .spinner' ).addClass( 'is-active' );
|
||||
|
||||
// Retrieve menu item data
|
||||
$(checkboxes).each(function(){
|
||||
@ -196,7 +196,7 @@ var wpNavMenu;
|
||||
api.addItemToMenu(menuItems, processMethod, function(){
|
||||
// Deselect the items and hide the ajax spinner
|
||||
checkboxes.removeAttr('checked');
|
||||
t.find( '.spinner' ).removeClass( 'is-active' );
|
||||
t.find( '.button-controls .spinner' ).removeClass( 'is-active' );
|
||||
});
|
||||
});
|
||||
},
|
||||
|
2
wp-admin/js/nav-menu.min.js
vendored
2
wp-admin/js/nav-menu.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.5-alpha-36426';
|
||||
$wp_version = '4.5-alpha-36427';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user