mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Menus: Remove 'sub item' label when removing the sub item's parent.
Props rnoakes3rd, adamsilverstein. Fixes #37846. Built from https://develop.svn.wordpress.org/trunk@38612 git-svn-id: http://core.svn.wordpress.org/trunk@38555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0bae73682b
commit
a0ce261a24
@ -82,9 +82,12 @@ var wpNavMenu;
|
||||
shiftDepthClass : function(change) {
|
||||
return this.each(function(){
|
||||
var t = $(this),
|
||||
depth = t.menuItemDepth();
|
||||
$(this).removeClass('menu-item-depth-'+ depth )
|
||||
.addClass('menu-item-depth-'+ (depth + change) );
|
||||
depth = t.menuItemDepth(),
|
||||
newDepth = depth + change;
|
||||
t.removeClass( 'menu-item-depth-'+ depth )
|
||||
.addClass( 'menu-item-depth-'+ ( newDepth ) );
|
||||
if ( newDepth == 0 )
|
||||
t.find( '.is-submenu' ).hide();
|
||||
});
|
||||
},
|
||||
childMenuItems : function() {
|
||||
|
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.7-alpha-38611';
|
||||
$wp_version = '4.7-alpha-38612';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user