Commit Graph

16 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
bumpbot 4d703df740 Compress scripts/styles: 3.4-alpha-20296.
git-svn-id: https://develop.svn.wordpress.org/trunk@20296 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:58:24 +00:00
bumpbot 5f9f15402c Compress scripts/styles: 3.4-alpha-20180.
git-svn-id: https://develop.svn.wordpress.org/trunk@20180 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:15:22 +00:00
Daryl Koopersmith d254551dd7 Theme Customizer: First pass for upload controls, using background image as an example. Add a wrapper for Plupload that allows for custom upload UIs. see #19910.
wp.Uploader is a wrapper that provides a simple way to upload an attachment (using the wp_ajax_upload_attachment handler). It is intentionally decoupled from the UI. When an upload succeeds, it will receive the attachment information (id, url, meta, etc) as a JSON response. If the upload fails, the wrapper handles both WordPress and plupload errors through a single handler.

As todos, we should add drag classes for the uploader dropzone and account for the rough 100mb filesize limit in most browsers. The UI for the customizer upload controls could be improved as well.

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00