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:
Andrea Fercia 2016-01-31 18:06:27 +00:00
parent 82f59fc6ef
commit c9e5edd637
3 changed files with 4 additions and 4 deletions

View File

@ -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' );
});
});
},

File diff suppressed because one or more lines are too long

View File

@ -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.