Commit Graph

86 Commits

Author SHA1 Message Date
bumpbot eb3b795233 Compress scripts/styles: 3.5-beta3-22826.
git-svn-id: https://develop.svn.wordpress.org/trunk@22826 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:58:32 +00:00
Daryl Koopersmith 6841b73925 Uploader: Display a more specific error message when a file exceeds the file size limit. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22822 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:18:17 +00:00
bumpbot 0c83571904 Compress scripts/styles: 3.5-beta3-22819.
git-svn-id: https://develop.svn.wordpress.org/trunk@22820 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:58:36 +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
bumpbot 94386517ce Compress scripts/styles: 3.5-beta3-22793.
git-svn-id: https://develop.svn.wordpress.org/trunk@22793 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:03:21 +00:00
Daryl Koopersmith 8be5a507aa Uploader: Route plupload errors to the correct handler and prevent naming conflicts. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22789 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:17:25 +00:00
Daryl Koopersmith afa98fa041 Uploader: Correctly trigger error callback. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22788 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:12:02 +00:00
bumpbot fe20fc8ccc Compress scripts/styles: 3.5-beta3-22763.
git-svn-id: https://develop.svn.wordpress.org/trunk@22763 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:58:31 +00:00
Andrew Nacin 9d2cc09ce1 Have media-new.php return simple rows of basic attachment data, with an 'Edit' link next to each taking them to post.php (in a new window). Not ideal, but this is largely a fallback screen at this point.
This is bolted on to existing code, the vast majority of which is destined to be ripped out in 3.6 once things settle.

see #22083.



git-svn-id: https://develop.svn.wordpress.org/trunk@22755 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:05:44 +00:00
bumpbot 995c548174 Compress scripts/styles: 3.5-beta3-22711.
git-svn-id: https://develop.svn.wordpress.org/trunk@22711 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 12:58:29 +00:00
Daryl Koopersmith e707481dcf Media Uploader: Change an uploaded attachment's 'updating' key with the rest of the returned attributes to allow events bound to 'change:updating' to access the new properties. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22709 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:52:08 +00:00
bumpbot ac3a589c8d Compress scripts/styles: 3.5-beta2-22546.
git-svn-id: https://develop.svn.wordpress.org/trunk@22546 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-11 22:58:32 +00:00
Daryl Koopersmith 9cd3c458c7 Media: Ensure variables in the attachment details template have defined defaults.
* Adds styling to the upload progress bar in the attachment details template.
* Defines the `filename` attribute when Plupload creates the client-side `Attachment` model.

fixes #22410, see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22543 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-11 05:16:41 +00:00
bumpbot db035ece96 Compress scripts/styles: 3.5-beta2-22326.
git-svn-id: https://develop.svn.wordpress.org/trunk@22326 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-29 22:58:31 +00:00
Daryl Koopersmith 15c451d2f6 Give media a heart transplant.
Revises the concept of the media controller and workspace views (i.e. two central points of control) to be more granular. The main media object is now the `Frame`, which is a hybrid view and state machine.

The state machine is a collection of states, which are just generic instances of `Backbone.Model`. This circumvents the problem of juggling global parameters when changing states. Each state contains its own event loop. All events are also forwarded to the frame itself (as is the case in all model/collection relationships).

The frame view contains several regions, each of which can be overridden without harming or re-rendering the other regions. These work well when used in conjunction with the state machine events.

This removes the upload sidebar (don't worry, visible upload UI will return). Drag and drop uploading still works. The ability to upload has been abstracted into its own view (instead of being attached to the central workspace view).

Editing galleries is temporarily broken — the gallery creation and editing experiences will be unified in a future patch.

Adds events to detect dragging changes in `wp.Uploader` and adds methods to detect and leverage browser support for CSS3 transitions.

see #21390, #21809.


git-svn-id: https://develop.svn.wordpress.org/trunk@22320 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-28 23:29:17 +00:00
bumpbot e21f4c8eb5 Compress scripts/styles: 3.5-beta2-22311.
git-svn-id: https://develop.svn.wordpress.org/trunk@22311 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 22:58:32 +00:00
Andrew Ozz b9fa351736 Hide the "You are using the multi-file uploader. Problems? Try the browser uploader instead." when Plupload falls back to "html4" runtime, fixes #19496
git-svn-id: https://develop.svn.wordpress.org/trunk@22305 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-25 20:53:38 +00:00
bumpbot 2aab5aa3b0 Compress scripts/styles: 3.5-beta1-22128.
git-svn-id: https://develop.svn.wordpress.org/trunk@22128 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-07 02:27:48 +00:00
Daryl Koopersmith a165bdfb83 Improve the lazy instantiation of the 'wp' JavaScript variable. props evansolomon, fixes #22113.
git-svn-id: https://develop.svn.wordpress.org/trunk@22126 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-06 00:43:36 +00:00
bumpbot b4322b3a60 Compress scripts/styles: 3.5-alpha-22071.
git-svn-id: https://develop.svn.wordpress.org/trunk@22071 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 19:21:47 +00:00
Daryl Koopersmith 424f5b21e6 When uploading files through the Plupload bridge, attempt to detect images on upload. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22041 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 05:52:42 +00:00
bumpbot 4c9bac8206 Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21879 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 00:59:40 +00:00
Daryl Koopersmith 1cc9c42bc4 Use JS Attachment models in wp.Uploader. fixes #21868.
Moves the uploading Attachments queue from the media workspace view to the uploader itself. This ensures that all attachments are added to the central attachmnet store.

Updates wp.Uploader to pass Attachment models to callbacks instead of Plupload file objects. Attachments in the process of uploading have a reference to the file object (which can be fetched by calling `attachment.get('file');`).

Also updates the customizer to be compatible with the API changes.


git-svn-id: https://develop.svn.wordpress.org/trunk@21814 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 16:55:58 +00:00
bumpbot a1a32b9013 Compress scripts/styles: 3.5-alpha-21727.
git-svn-id: https://develop.svn.wordpress.org/trunk@21727 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 05:07:20 +00:00
Daryl Koopersmith aa1446319d Do not instantiate a Plupload instance when the wp-plupload bridge has neither a browse button nor a dropzone. fixes #21707.
git-svn-id: https://develop.svn.wordpress.org/trunk@21722 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 04:10:00 +00:00
bumpbot bca5b5538d Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@21663 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 04:09:57 +00:00
Daryl Koopersmith ff1dd048f4 Improve consistency in wp.Uploader callbacks; pass file objects to all handlers. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21656 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 19:56:42 +00:00
Daryl Koopersmith 5d3e630f2b Allow elements within a wp.Uploader dropzone to be repositioned when the drag-over class is added. fixes #21705.
git-svn-id: https://develop.svn.wordpress.org/trunk@21630 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-27 22:20:23 +00:00
Andrew Nacin db981a3b27 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot 1f6ab35e33 Compress scripts/styles: 3.5-alpha-21382.
git-svn-id: https://develop.svn.wordpress.org/trunk@21382 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 02:58:20 +00:00
Daryl Koopersmith a1513dd683 When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].
git-svn-id: https://develop.svn.wordpress.org/trunk@21380 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 02:27:18 +00:00
Daryl Koopersmith 75f9258969 Make the browser property in wp.Uploader optional. fixes #21437.
git-svn-id: https://develop.svn.wordpress.org/trunk@21379 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 01:10:13 +00:00
bumpbot 028e1c35cf Compress scripts/styles: 3.4-RC1-21015.
git-svn-id: https://develop.svn.wordpress.org/trunk@21015 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:51:13 +00:00
Daryl Koopersmith 299642f86b Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.
Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.


git-svn-id: https://develop.svn.wordpress.org/trunk@21014 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:45:17 +00:00
bumpbot 1699318343 Compress scripts/styles: 3.4-RC1-20979.
git-svn-id: https://develop.svn.wordpress.org/trunk@20979 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-02 01:58:27 +00:00
Andrew Ozz 971e81c326 Fix notice in wp_read_image_metadata() when EXIF ISOSpeedRatings is array, props nacin, fixes #20807
git-svn-id: https://develop.svn.wordpress.org/trunk@20978 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-02 01:39:00 +00:00
bumpbot 00bccb6d74 Compress scripts/styles: 3.4-beta4-20929.
git-svn-id: https://develop.svn.wordpress.org/trunk@20929 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 05:58:26 +00:00
Daryl Koopersmith 83c45f9d04 Theme Customizer: Fix IE8 drag/drop uploader incompatibility. see #20582, #19910.
Bind drag/drop support checks to individual plupload instances.
Add drag-over classes to wp.Uploader and corresponding styles to customize image controls.


git-svn-id: https://develop.svn.wordpress.org/trunk@20928 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 05:55:40 +00:00
bumpbot 5b4edeb721 Compress scripts/styles: 3.4-beta4-20762.
git-svn-id: https://develop.svn.wordpress.org/trunk@20762 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:58:25 +00:00
Daryl Koopersmith 476314ad8b Theme Customizer: Add a fallback UI for browsers that do not support drag and drop upload. see #19910, #20452, #20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20761 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-10 00:15:53 +00:00
bumpbot 243ecb7b13 Compress scripts/styles: 3.4-beta4-20760.
git-svn-id: https://develop.svn.wordpress.org/trunk@20760 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:58:31 +00:00
Daryl Koopersmith 971dc88583 Uploader & Theme Customizer: Refresh uploader flash/silverlight shims when the mouse enters the browse button. Add class to body based on uploader's drag/drop support. Properly assign customize image uploader containers (so flash shims are positioned correctly when scrolled). see #19910, #20452, #20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20758 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-09 21:26:19 +00:00
bumpbot 05654f8874 Compress scripts/styles: 3.4-beta3-20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20582 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:58:22 +00:00
Andrew Ozz f55dbdbd27 Uploader: fix check for error message send from async-upload on failed uploads, improve styling it a bit, props trepmal, SergeyBiryukov, fixes #20445
git-svn-id: https://develop.svn.wordpress.org/trunk@20580 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:06:55 +00:00
bumpbot 1235945716 Compress scripts/styles: 3.4-beta3-20578.
git-svn-id: https://develop.svn.wordpress.org/trunk@20578 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:58:21 +00:00
Daryl Koopersmith 14100746f2 Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532.
git-svn-id: https://develop.svn.wordpress.org/trunk@20577 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:38:47 +00:00
bumpbot 909935606a Compress scripts/styles: 3.4-beta2-20546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20546 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:58:21 +00:00
Daryl Koopersmith e2bbb75ba5 Theme Customizer: Improve image picker control. see #19910.
Overhauled image pickers:
* Add support for drag and drop uploads to image controls.
* Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist.
* Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions.
* Abstract the dropdown functionality from the color picker to the .dropdown class.
* In wp.Uploader, unset element keys if passed an empty jQuery collection.



git-svn-id: https://develop.svn.wordpress.org/trunk@20545 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:39:55 +00:00
bumpbot c6317cb5fe Compress scripts/styles: 3.4-beta2-20468.
git-svn-id: https://develop.svn.wordpress.org/trunk@20468 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:58:19 +00:00