Menus: Avoid displaying two spinners when adding selected menu items.

Fixes #35682.

git-svn-id: https://develop.svn.wordpress.org/trunk@36427 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-01-31 18:05:45 +00:00
parent 66cb522610
commit 2635b3dadb
1 changed files with 2 additions and 2 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' );
});
});
},