mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Remove old code that breaks menu design rendering. props koopersmith, fixes #13311.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c99110a58
commit
544d3d0f84
@ -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