Customize: Show Pages section first and pre-expanded in list of available nav menu items.

Props ryankienstra, westonruter.
Fixes #36984.


git-svn-id: https://develop.svn.wordpress.org/trunk@38767 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter
2016-10-09 23:40:53 +00:00
parent 03b8796cad
commit 81ae08cf40
2 changed files with 99 additions and 55 deletions

View File

@@ -397,6 +397,8 @@
}
self.pages[ type + ':' + object ] = -1;
return;
} else if ( 'page' === object ) {
availableMenuItemContainer.find( '.accordion-section-title > button' ).click();
}
items = new api.Menus.AvailableItemCollection( items ); // @todo Why is this collection created and then thrown away?
self.collection.add( items.models );