[wp-trac] [WordPress Trac] #24716: Grid view for the Media Library

WordPress Trac noreply at wordpress.org
Sun Jun 29 20:07:13 UTC 2014

#24716: Grid view for the Media Library
 Reporter:  alexvorn2     |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  ui, javascript, administration

Comment (by ericlewis):

 attachment:24716.11.diff​​ is still a work in progress, and should not be
 considered for commit, only for feedback.

 Brief notes: Edit attachment modal now has tabs, defaulting to the edit
 attachment details tab. Only shows tabs if the attachment is an image, as
 the second tab is for "Edit Image"

 Hard notes:
 * Renamed `media.view.Frame.EditMediaDetails` to
 `media.view.Frame.EditAttachment`, fits in better with the vocabulary used
 elsewhere in media.
 * Added a `router` to this frame.
 * Introduce `media.view.Attachment.Details.TwoColumn`, which is
 essentially `media.view.Attachment.Details` (what you see in the right
 sidebar when editing a media item in the regular media modal) but with a
 different microtemplate. Oddity here: `media.view.Attachment.Details`
 inherits from `media.view.Attachment`. `media.view.Attachment` sets up our
 data binding, but also presupposes a frame that will have a `selection`
 property, assuming we're selecting attachments. Gave
 `media.view.Attachment.Details.TwoColumn` a custom `initialize` method
 which is a copy of `media.view.Attachment.Details.initialize` while
 ripping out the part about `selection`.

Ticket URL: <https://core.trac.wordpress.org/ticket/24716#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list