Commit Graph

95 Commits

Author SHA1 Message Date
Andrew Nacin d943307e5d Copy wpspin_light to wp-includes as wpspin.gif. Use it in media views. see #22728.
git-svn-id: https://develop.svn.wordpress.org/trunk@23023 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:18:53 +00:00
Ryan Boren 00e20a52dc Final round of media UX improvements.
Props koopersmith
fixes #21390 #22502


git-svn-id: https://develop.svn.wordpress.org/trunk@23006 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:26:03 +00:00
Ryan Boren 5af1f254e4 No wrap for the attachment Delete Permanently link in the media modal.
Props SergeyBiryukov
fixes #22667


git-svn-id: https://develop.svn.wordpress.org/trunk@22998 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:49:45 +00:00
Ryan Boren 7ad3d2410c Show a spinner when attachment details are saved.
Props koopersmith
see #22613


git-svn-id: https://develop.svn.wordpress.org/trunk@22991 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:37:49 +00:00
Ryan Boren 9cdc4de444 Add random and reverse sorting options to gallery settings.
Props koopersmith
fixes #22637


git-svn-id: https://develop.svn.wordpress.org/trunk@22987 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:32:25 +00:00
Andrew Nacin a347195dca In Firefox, style placeholder text a dark gray since the browser doesn't do it for us. props helenyhou, fixes #22689.
git-svn-id: https://develop.svn.wordpress.org/trunk@22986 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:17:23 +00:00
Andrew Nacin 86a0b9ad45 Media: Prevent the compat view from wrapping around the attachment details. Allow the filename to break-word. props koopersmith, SergeyBiryukov. fixes #22667.
git-svn-id: https://develop.svn.wordpress.org/trunk@22983 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:15:32 +00:00
Andrew Nacin f88b538001 Bring Featured Images back into the main media dialog.
Most users don't realize that the Featured Image meta box exists; if they do, few use it.

Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.

Specific underlying changes:
 * Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
 * Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.

props koopersmith.
fixes #21776.



git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
Ryan Boren f9b0b72ffc Responsive and RTL css improvements or the media modal.
Props ocean90, koopersmith
see #22615


git-svn-id: https://develop.svn.wordpress.org/trunk@22960 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:53:53 +00:00
Andrew Nacin 229c5c9be3 Media: Add -webkit-overflow-scrolling for a smoother mobile/iOS experience.
props koopersmith.
fixes #22657.



git-svn-id: https://develop.svn.wordpress.org/trunk@22959 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 01:44:15 +00:00
Ryan Boren 780c0ec85b Properly pass WordPress uploading errors to wp.Uploader.
Props koopersmith
fixes #22655


git-svn-id: https://develop.svn.wordpress.org/trunk@22954 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:40:09 +00:00
Ryan Boren 17622c2daa Improve switching between browser and upload state.
Props koopersmith
fixes #22628


git-svn-id: https://develop.svn.wordpress.org/trunk@22945 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 06:01:47 +00:00
Ryan Boren 6fbf7fcfbf Revert accidental bits from r22919. see #22628
git-svn-id: https://develop.svn.wordpress.org/trunk@22923 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:58:08 +00:00
Ryan Boren 49b230b82a Icons for select, deselect, and window close in the media modal.
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610


git-svn-id: https://develop.svn.wordpress.org/trunk@22920 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 14:36:12 +00:00
Ryan Boren 3ad110f078 Icons for select, deselect, and window close in the media modal.
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610


git-svn-id: https://develop.svn.wordpress.org/trunk@22919 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 13:33:57 +00:00
Andrew Nacin d6f636d353 Some IE7 CSS hacks for media to fix the gallery view. props lessbloat. fixes #22609.
git-svn-id: https://develop.svn.wordpress.org/trunk@22894 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:17:43 +00:00
Daryl Koopersmith 2422ab4b83 Responsive CSS for the media modal. props azaozz. see #22615, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22887 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:51:15 +00:00
Ryan Boren c5c74b7a39 Scope media views CSS fallbacks.
Props koopersmith
fixes #22616


git-svn-id: https://develop.svn.wordpress.org/trunk@22886 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:45:06 +00:00
Andrew Nacin 3b941ca1b8 Media: IE fixes for attachment selections. props lessbloat. see #22446.
git-svn-id: https://develop.svn.wordpress.org/trunk@22876 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:14:36 +00:00
Andrew Nacin 7f34c3e8ec Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541.
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
Ryan Boren e0a32fe27b Fix overflow of long filenames in the media modal.
Props koopersmith, GregLone
fixes #22554


git-svn-id: https://develop.svn.wordpress.org/trunk@22870 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:58:47 +00:00
Ryan Boren 6a9c14ed5f Add a delete link to the media modal.
Props merty, nacin, koopersmith
fixes #22524


git-svn-id: https://develop.svn.wordpress.org/trunk@22869 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:50:59 +00:00
Ryan Boren b750487b07 Fix dragging in IE10 on touch devices.
Props georgestephanis, koopersmith
fixes #22583


git-svn-id: https://develop.svn.wordpress.org/trunk@22866 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:00:00 +00:00
Daryl Koopersmith f20573509b Media: Use a full uploader status view in the inline uploader. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22825 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:54:49 +00:00
Daryl Koopersmith 2070f5ca49 Media: Add uploader error detection to the inline uploader view as well. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22824 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:35:05 +00:00
Daryl Koopersmith 99def3ec51 Media: Make friends with media_upload_form. Adds notices for browser incompatibility, upload limits, maximum file size, and large file issues to the uploader. fixes #22243, see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22821 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 11:46:03 +00:00
Daryl Koopersmith b007f89d0d Media: Display WordPress and plupload error messages whenever an upload fails. see #22243, #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22818 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:56:10 +00:00
Daryl Koopersmith ff6ae18d2d Media: Add global upload progress to the sidebar. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22816 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:32:21 +00:00
Daryl Koopersmith 4a99fa363e Media: Move sidebar from the frame view to the attachment browser view. Prevents juggling sidebar visibility state, and makes managing sidebar contents more reasonable. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22809 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 06:30:25 +00:00
Daryl Koopersmith b629757edb Media: Normalize font sizes, link colors, and other styles. props lessbloat, see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22782 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:37:52 +00:00
Daryl Koopersmith 2485bff7a2 Media: Add base form element CSS. props lessbloat. see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22780 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:00:18 +00:00
Daryl Koopersmith 04cc69db01 Media: Ensure icons stay within the bounds of their surrounding view. fixes #22522, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22739 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:44:22 +00:00
Daryl Koopersmith a0dca55d03 Media: Set a max width on select elements in the sidebar. fixes #22517, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22733 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:51:35 +00:00
Andrew Nacin 16d68f6dba RTL media-views fixes. props ocean90. fixes #22453.
git-svn-id: https://develop.svn.wordpress.org/trunk@22720 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:22:19 +00:00
Daryl Koopersmith 76c67989a7 Media: Add filters to the media library. fixes #22514, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22712 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 13:49:35 +00:00
Daryl Koopersmith ce06a037dd Media: Attachment checkboxes now function as such. fixes #22462, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22706 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:10:04 +00:00
Daryl Koopersmith 4a696709f8 Media: Allow textareas to be vertically resized. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22703 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:59:31 +00:00
Daryl Koopersmith 101c5a5371 Media: Add a base view class.
* Centralizes view and subview management, unifying several disjointed constructs.
* Utilizes the `dispose` functionality found in Backbone master, providing a standard method for memory management.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22648 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:36:47 +00:00
Daryl Koopersmith e36ce9af8e Media: zIndex peace was only temporary.
Revert [22611] in favor of using plupload's `container` setting. Turns out, plupload's flash shim is forced to the exact same index as the admin bar, so balancing the two is better solved by nesting the shim.

see #22441, #22446, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22612 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:30:36 +00:00
Daryl Koopersmith 17ae09a2d4 Media: The zIndex arms race.
Adjusts zIndexes to be not-as-absurd as before, in the process moving the modal below the plupload flash shims (which do not have customizable zIndexes or classes, sadly).

fixes #22441, see #22446, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22611 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:20:11 +00:00
Daryl Koopersmith b520130998 Media: Add an explicit border to menus to show a divider in older browsers. see #22446, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22610 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:47:00 +00:00
Daryl Koopersmith 8438636322 Media: Only display "Drop files" text when the browser supports drag and drop. see #22446, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22609 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:39:58 +00:00
Daryl Koopersmith b13b36db98 Media: Remove dead CSS. props ocean90, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22605 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:04:37 +00:00
Daryl Koopersmith 0583ab09f3 Media: RTL styles for the media modal. props ocean90. see #22453, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22604 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:58:33 +00:00
Daryl Koopersmith ee694739ec Media: Update in-grid captions.
* Use input fields instead of textboxes (which provide better handling for smaller attachments).
* Provide `data-setting` properties to properly sync the changes.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22603 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:53:06 +00:00
Daryl Koopersmith a3c53653ba Media: Prevent text from being selected in the menu. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22595 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:51:31 +00:00
Daryl Koopersmith bf105feb4e Media: Enter batch insert workflow by editing the selection instead of having an explicit button. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22594 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:36:06 +00:00
Daryl Koopersmith b295ed0059 Media: Remove border from inline media uploader. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22570 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 09:33:15 +00:00
Daryl Koopersmith 9fb6e29102 Media: Add support for applicable *-upload-ui hooks.
Supports pre-upload-ui, pre-plupload-upload-ui, post-plupload-upload-ui, post-upload-ui.

see #22186, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22557 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-13 01:50:08 +00:00
Daryl Koopersmith 4ee51a98cb Media: Add an "upload more files" button to upload states. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22552 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-12 23:52:17 +00:00