mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00: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.initToggles();
|
||||||
|
|
||||||
this.initTabManager();
|
this.initTabManager();
|
||||||
|
|
||||||
this.checkForEmptyMenu();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
jQueryExtensions : function() {
|
jQueryExtensions : function() {
|
||||||
@ -759,14 +757,6 @@ var wpNavMenu;
|
|||||||
el.remove();
|
el.remove();
|
||||||
children.shiftDepthClass(-1).updateParentMenuItemDBId();
|
children.shiftDepthClass(-1).updateParentMenuItemDBId();
|
||||||
api.recalculateMenuItemPositions();
|
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…
x
Reference in New Issue
Block a user