Remove old code that breaks menu design rendering. props koopersmith, fixes #13311.
git-svn-id: https://develop.svn.wordpress.org/trunk@14530 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
581779a30d
commit
1cdd8d707e
@ -47,8 +47,6 @@ var wpNavMenu;
|
||||
this.initToggles();
|
||||
|
||||
this.initTabManager();
|
||||
|
||||
this.checkForEmptyMenu();
|
||||
},
|
||||
|
||||
jQueryExtensions : function() {
|
||||
@ -759,14 +757,6 @@ var wpNavMenu;
|
||||
el.remove();
|
||||
children.shiftDepthClass(-1).updateParentMenuItemDBId();
|
||||
api.recalculateMenuItemPositions();
|
||||
that.checkForEmptyMenu();
|
||||
});
|
||||
},
|
||||
|
||||
checkForEmptyMenu : function() {
|
||||
if( api.menuList.children().length ) return;
|
||||
api.menuList.height(80).one('sortstop', function(){
|
||||
$(this).height('auto');
|
||||
});
|
||||
},
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user