Ticket #13311: 13311.1.patch
| File 13311.1.patch, 845 bytes (added by , 16 years ago) |
|---|
-
wp-admin/js/nav-menu.dev.js
47 47 this.initToggles(); 48 48 49 49 this.initTabManager(); 50 51 this.checkForEmptyMenu();52 50 }, 53 51 54 52 jQueryExtensions : function() { … … 759 757 el.remove(); 760 758 children.shiftDepthClass(-1).updateParentMenuItemDBId(); 761 759 api.recalculateMenuItemPositions(); 762 that.checkForEmptyMenu();763 760 }); 764 761 }, 765 766 checkForEmptyMenu : function() {767 if( api.menuList.children().length ) return;768 api.menuList.height(80).one('sortstop', function(){769 $(this).height('auto');770 });771 },772 762 773 763 formatAutocompleteResponse : function( resultRow, pos, total, queryTerm ) { 774 764 if ( resultRow && resultRow[0] ) {