Dominik Schilling
e6513fe33b
Media Modal: Restore uploader view, when no items are found.
...
see #28963 .
Built from https://develop.svn.wordpress.org/trunk@29364
git-svn-id: http://core.svn.wordpress.org/trunk@29140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-02 20:47:16 +00:00
Dominik Schilling
fb9084eed3
Disable background page scrolling when modals are open.
...
props celloexpressions.
fixes #29074 .
Built from https://develop.svn.wordpress.org/trunk@29346
git-svn-id: http://core.svn.wordpress.org/trunk@29124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-01 20:15:15 +00:00
Andrew Ozz
4bff4ff2d6
Use node.nodeName instead of tagName for better consistency/compatibility, see #28704 .
...
Built from https://develop.svn.wordpress.org/trunk@29332
git-svn-id: http://core.svn.wordpress.org/trunk@29112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-30 17:49:16 +00:00
Helen Hou-Sandí
2ca11ebf72
Prevent key event handlers from firing when in input areas in the media modal, as people understandably want to type inside said inputs. props kovshenin. fixes #28704 .
...
Built from https://develop.svn.wordpress.org/trunk@29331
git-svn-id: http://core.svn.wordpress.org/trunk@29111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-30 17:39:15 +00:00
Dominik Schilling
7bbbbe44c7
Media Grid: Improve lazy loading.
...
props kovshenin.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@29312
git-svn-id: http://core.svn.wordpress.org/trunk@29093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-27 17:58:15 +00:00
Scott Taylor
0e4c8b2b0c
Media Grid: when closing the modal, automatically focus the proper attachment by reading the model's ID, which is unique.
...
Props adamsilverstein (for the red), wonderboymusic (for the green).
Fixes #28857 .
Built from https://develop.svn.wordpress.org/trunk@29299
git-svn-id: http://core.svn.wordpress.org/trunk@29081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-25 01:00:16 +00:00
Scott Taylor
27866228af
Media Grid: UI improvements to Attachment modal.
...
Props ryelle.
See #28844 .
Built from https://develop.svn.wordpress.org/trunk@29289
git-svn-id: http://core.svn.wordpress.org/trunk@29071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-24 21:55:17 +00:00
Scott Taylor
9382741cbe
Don't render Attachment Display Settings when display
is set to false
. Currently, the value for display
in the media.view.AttachmentsBrowser
instance in the media.view.MediaFrame.Select
frame is set to the value for displaySettings
.
...
These values do different things, so check for the existence of `display` on the state before arbitrarily setting it to the `displaySettings` value.
Real world: this hides display settings when you select an image while editing a Gallery.
Fixes #28653 .
Built from https://develop.svn.wordpress.org/trunk@29285
git-svn-id: http://core.svn.wordpress.org/trunk@29067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-24 20:58:16 +00:00
Scott Taylor
5be43cfeb1
Media Grid: Manage focus when toggling between the grid and an edit attachment modal
...
Props adamsilverstein for the initial patch.
Fixes #28857 .
Built from https://develop.svn.wordpress.org/trunk@29282
git-svn-id: http://core.svn.wordpress.org/trunk@29064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-24 19:05:15 +00:00
Helen Hou-Sandí
795c97d08b
Add support for attachment_fields_to_edit
in the attachment details modal. props ericlewis. fixes #28991 , see #24716 .
...
Built from https://develop.svn.wordpress.org/trunk@29278
git-svn-id: http://core.svn.wordpress.org/trunk@29060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-23 22:09:18 +00:00
Dominik Schilling
270a57075c
Media Grid: Add a date filter.
...
props ericlewis.
fixes #28895 .
Built from https://develop.svn.wordpress.org/trunk@29271
git-svn-id: http://core.svn.wordpress.org/trunk@29053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-22 20:47:15 +00:00
Scott Taylor
0702527010
Media Grid: general JS cleanup.
...
Props ericlewis.
See #28965 .
Built from https://develop.svn.wordpress.org/trunk@29266
git-svn-id: http://core.svn.wordpress.org/trunk@29049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-22 16:21:15 +00:00
Helen Hou-Sandí
e8ade6be6e
Keyboard accessibility for the media modal:
...
* Arrow keys navigate between items in the grid.
* Transfer focus into the panel when selecting a tab along the side.
* Transfer focus into the details sidebar when selecting an item and vice versa.
* Set initial focus on the close button so that it is visible.
props celloexpressions, lessbloat, ericlewis. fixes #25100 , #25101 , #28704 . see #23560 .
Built from https://develop.svn.wordpress.org/trunk@29220
git-svn-id: http://core.svn.wordpress.org/trunk@29004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-18 07:57:15 +00:00
Helen Hou-Sandí
5267c64e5f
Fix jshint errors introduced in [29212]. see #28842 .
...
Built from https://develop.svn.wordpress.org/trunk@29213
git-svn-id: http://core.svn.wordpress.org/trunk@28997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-17 20:46:14 +00:00
Helen Hou-Sandí
06f5b5a490
Media Grid:
...
Instead of a separate bulk selection mode, persistently show a checkbox for each item. Restores the more familiar bulk actions dropdown + action button.
props ericlewis. see #28842 .
Built from https://develop.svn.wordpress.org/trunk@29212
git-svn-id: http://core.svn.wordpress.org/trunk@28996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-17 20:42:15 +00:00
Dominik Schilling
448422f8ae
Media Grid improvements:
...
* Remove fixed elements.
* Adjusts toolbar and search, fixes #28833 .
* Add link to Add New button, fixes #28825 .
* Add "Edit Metadata" tab to all items, "Edit Image" only for images
* Make strings translatable.
* First pass for help tab.
see #28850 .
Built from https://develop.svn.wordpress.org/trunk@29136
git-svn-id: http://core.svn.wordpress.org/trunk@28920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-13 16:16:15 +00:00
Scott Taylor
ba688f4ff9
In the Post/Select frames, for audio files:
...
* Show `artist` and `album` fields in the Attachment Details sidebar
* Sync their values on `change`
See #28839 .
Built from https://develop.svn.wordpress.org/trunk@29105
git-svn-id: http://core.svn.wordpress.org/trunk@28891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 21:02:15 +00:00
Scott Taylor
59ffcf668b
Media Grid, for audio files:
...
* Show `artist` and `album` fields in the Edit Attachment modal
* Sync their values on `change`
See #28839 .
Built from https://develop.svn.wordpress.org/trunk@29104
git-svn-id: http://core.svn.wordpress.org/trunk@28890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 20:55:15 +00:00
Scott Taylor
c22c49a1ba
Media Grid: "Add New" should open and close, not just open.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29087
git-svn-id: http://core.svn.wordpress.org/trunk@28873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 05:44:14 +00:00
Scott Taylor
9978d473ef
Media Grid: make the Uploader closable.
...
Props ericlewis.
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29082
git-svn-id: http://core.svn.wordpress.org/trunk@28868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 23:06:15 +00:00
Scott Taylor
f6ced74287
Media Grid: while in Bulk Edit mode, any selected attachment should have the blue border, rather than just the last clicked one.
...
Props ericlewis.
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29081
git-svn-id: http://core.svn.wordpress.org/trunk@28867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 23:03:14 +00:00
Scott Taylor
a89060013b
Media Grid: Move toggling of visible fields to Screen Options. This moves us in a better direction... but this will probably need to be massaged again.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29077
git-svn-id: http://core.svn.wordpress.org/trunk@28863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 21:00:17 +00:00
Scott Taylor
7f4716e1c3
Media Grid, add padding to "No Media Found" message.
...
Props michalzuber.
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29067
git-svn-id: http://core.svn.wordpress.org/trunk@28853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 17:31:15 +00:00
Scott Taylor
d297258d99
Media Grid, remove unnecessary abstraction: wp.media.controller._State
...
Props ericlewis.
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29066
git-svn-id: http://core.svn.wordpress.org/trunk@28852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 16:02:15 +00:00
Scott Taylor
dd9bfea6bb
Media Grid: make the edit attachment icon clickable.
...
Props ericlewis.
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@29065
git-svn-id: http://core.svn.wordpress.org/trunk@28851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 15:56:15 +00:00
Helen Hou-Sandí
89dff37759
Media grid:
...
* Introduce the concept of bulk editing via a separate mode. Like the list view, only bulk deleting is available. The UI is a little funky, especially with the field display toggles there, but refinements will come.
* Up the max thumbnail size from 120px to 150px.
* Slide-down panel for the add new uploader. Known issue: it doesn't close again.
* Remove the toolbar region in the EditAttachment frame.
* Defer a function call so the grid fills available space.
* Give feedback when no results are found. Also needs styling.
props ericlewis. see #24716 .
Built from https://develop.svn.wordpress.org/trunk@29056
git-svn-id: http://core.svn.wordpress.org/trunk@28844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-10 03:50:17 +00:00
Scott Taylor
9a1ac73c34
Make media grid text fields (data) toggle-able. Checking/unchecking is saved in user settings cookie.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28995
git-svn-id: http://core.svn.wordpress.org/trunk@28783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 04:48:15 +00:00
Helen Hou-Sandí
63f9cbd02a
Media grid, round 2. Expect much more to come.
...
* Instead of a sidebar for details, utilize a modal. The modal experience allows for a larger preview, editing images, audio/video previews, and previous/next navigation, like the theme browser. Think of it as an attachment browser.
* Show some details in the grid view to more easily distinguish items.
props ericlewis, wonderboymusic, JerrySarcastic. see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28993
git-svn-id: http://core.svn.wordpress.org/trunk@28781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 03:39:15 +00:00
Scott Taylor
0546378ce8
Make a new file: media-grid.js
. This will be way more useful in later commits and help reduce churn and bloat in media-views.js
.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28992
git-svn-id: http://core.svn.wordpress.org/trunk@28780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 02:18:14 +00:00
Scott Taylor
0510e0e589
Add more docs for media.view.MediaFrame.Select
methods.
...
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28989
git-svn-id: http://core.svn.wordpress.org/trunk@28777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 01:43:17 +00:00
Scott Taylor
6ab2f15b0b
Dynamically prepend screen reader text to the attachment filters dropdown and the search box in the media modal.
...
Props SergeyBiryukov.
Fixes #25102 .
Built from https://develop.svn.wordpress.org/trunk@28839
git-svn-id: http://core.svn.wordpress.org/trunk@28643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:28:16 +00:00
Scott Taylor
6c3ce75b1c
Race conditions can cause .uploader-window
to be visible with opacity of 0
. It will cause the user to have to refresh the page or inspect the element to hide it. Add a delay in wp.media.view.UploaderWindow.hide()
to ensure that the uploader window is indeed hidden.
...
Props kovshenin.
Fixes #27341 .
Built from https://develop.svn.wordpress.org/trunk@28838
git-svn-id: http://core.svn.wordpress.org/trunk@28642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:20:15 +00:00
Scott Taylor
43320a5825
wp.mce.embedView.fetch()
and wp.media.view.EmbedLink.fetch()
need to pass the same parameters.
...
Fixes #28532 .
Built from https://develop.svn.wordpress.org/trunk@28816
git-svn-id: http://core.svn.wordpress.org/trunk@28623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-24 00:40:14 +00:00
Scott Taylor
46a4208f6b
Add "edit" mode for [embed]
and URL media previews.
...
See #28532 .
Built from https://develop.svn.wordpress.org/trunk@28752
git-svn-id: http://core.svn.wordpress.org/trunk@28566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-13 21:42:15 +00:00
Sergey Biryukov
5fb95760aa
Fix JSHint error.
...
props avryl.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28697
git-svn-id: http://core.svn.wordpress.org/trunk@28514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-08 12:33:16 +00:00
Scott Taylor
1bb24133d9
Improve inline doc descriptions in media-views.js
.
...
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28688
git-svn-id: http://core.svn.wordpress.org/trunk@28506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 14:13:17 +00:00
Helen Hou-Sandí
b5ef672c6b
Grid view for the media library, first pass. This is alpha; expect imperfection. We will be iterating further.
...
props ericlewis, shaunandrews, wonderboymusic.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28682
git-svn-id: http://core.svn.wordpress.org/trunk@28500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-05 22:01:18 +00:00
Scott Taylor
5d89ee4b3b
Media modal documentation:
...
Add some clarity to default values for controllers.
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28675
git-svn-id: http://core.svn.wordpress.org/trunk@28493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-05 14:54:14 +00:00
Helen Hou-Sandí
207bfa43b3
Fix a jshint error introduced in [28607]. see #23560 .
...
Built from https://develop.svn.wordpress.org/trunk@28617
git-svn-id: http://core.svn.wordpress.org/trunk@28441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 14:25:14 +00:00
Helen Hou-Sandí
78d90bd443
At long last, improved keyboard accessibility for the media modal.
...
props lessbloat, grahamarmfield, sharonaustin, bramd.
see #23560 .
Built from https://develop.svn.wordpress.org/trunk@28607
git-svn-id: http://core.svn.wordpress.org/trunk@28431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 03:39:15 +00:00
Scott Taylor
3c1723afd7
When adding a URL in the Insert from URL
state in the media modal, attempt to show a preview of the content. Drop the unused width and height fields.
...
This will probably be iterated upon.
Props helen, jtsternberg, wonderboymusic.
See #15490 .
Built from https://develop.svn.wordpress.org/trunk@28581
git-svn-id: http://core.svn.wordpress.org/trunk@28406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 23:57:14 +00:00
Scott Taylor
746397f18b
Allow the settings view for galleries to be disabled when instantiating wp.media.controller.GalleryEdit
.
...
Props nd987.
Fixes #23116 .
Built from https://develop.svn.wordpress.org/trunk@28577
git-svn-id: http://core.svn.wordpress.org/trunk@28402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 22:49:16 +00:00
Scott Taylor
5682d30b6e
In wp.media.view.Settings::update()
, when handling checkboxes, check for a value of 'false'
in addition to casting value
to boolean. !! 'false'
evaluates to true
.
...
Props adamsilverstein.
Fixes #23954 .
Built from https://develop.svn.wordpress.org/trunk@28371
git-svn-id: http://core.svn.wordpress.org/trunk@28199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 07:03:15 +00:00
Andrew Ozz
3eb1616925
Drag/drop on the editor to upload: don't trigger the uploader when selected test is being dragged from one window to another. See #27880 , for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@28189
git-svn-id: http://core.svn.wordpress.org/trunk@28019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-23 20:35:13 +00:00
Scott Taylor
baf754ce35
Use the proper translated string for Video Playlist "drag info" - the text displayed above the playlist's sortable attachments.
...
See #27937 .
Built from https://develop.svn.wordpress.org/trunk@28178
git-svn-id: http://core.svn.wordpress.org/trunk@28009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-21 19:37:14 +00:00
Andrew Nacin
d1e72b8e20
Image Details modal: Remember the last state of the advanced toggle.
...
props gcorne.
fixes #27366 .
Built from https://develop.svn.wordpress.org/trunk@28125
git-svn-id: http://core.svn.wordpress.org/trunk@27956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-14 23:56:16 +00:00
Andrew Ozz
0df02eb8ea
Add hooks to the wpeditimage tinymce plugin and to the image details portion of the media modal.
...
- Add wp.media.events which is intended to be a global media event bus.
- Add a post-render event to the ImageDetails view that third-party code can leverage to add subviews.
- Performance improvement for the initialization of the PostImage model.
- A bit more markup to the image details template to make it easier to add a view to the advanced options.
Props gcorne, fixes #27698
Built from https://develop.svn.wordpress.org/trunk@28095
git-svn-id: http://core.svn.wordpress.org/trunk@27926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-13 04:02:15 +00:00
Scott Taylor
2c963a82f7
Restore GalleryAdd()
and GalleryEdit()
in media-views.js
to ensure back-compat.
...
See [27362].
Built from https://develop.svn.wordpress.org/trunk@28048
git-svn-id: http://core.svn.wordpress.org/trunk@27878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 15:54:14 +00:00
Dominik Schilling
ad278c17e0
Move toolbar
declaration after the :visible
check, like it was before [28019].
...
props kovshenin.
fixes #24859 .
Built from https://develop.svn.wordpress.org/trunk@28046
git-svn-id: http://core.svn.wordpress.org/trunk@27876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 11:21:15 +00:00
Andrew Nacin
c870767d98
Header Images: Add suggested dimensions to the media workflow.
...
This updates [28030] to the latest patch.
props gcorne.
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@28031
git-svn-id: http://core.svn.wordpress.org/trunk@27861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 01:57:16 +00:00