[wp-trac] [WordPress Trac] #28895: Media Grid: Add a date filter
WordPress Trac
noreply at wordpress.org
Mon Jul 14 17:33:18 UTC 2014
#28895: Media Grid: Add a date filter
--------------------------+-------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 4.0
Component: Media | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by ericlewis):
> it seems like there is no API to support multiple
wp.media.view.AttachmentFilters in one frame yet
A new `AttachmentFilter` view will be added to the `AttachmentBrowser`'s
`Toolbar`, similar to how they are
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/media-
views.js?rev=29166#L5683 here]. So what needs doing is create a new filter
view for Date filtering a la `media.view.AttachmentFilters.mimeTypes` and
then conditionally add it to the toolbar, probably inside the conditional
check `if ( this.controller.activeModes.where( { id: 'grid' } ).length ) {
}`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28895#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list