WordPress/wp-includes/js
Daryl Koopersmith 380dfbbeab Allow JS Attachments models to be searchable and sortable.
Moves `wp.media.model.Query` sorting and searching to the parent `wp.media.model.Attachments`.

Query parameters are stored in `attachments.props`, which is a `Backbone.Model`, and supports `order` (`'ASC'` or `'DESC'`), `orderby` (any `Attachment` model property name), `search` (a search term), and `query` (a boolean value that ties the `Attachments` collection to the server).

`wp.media.query( args )` now returns an `Attachments` set that is mapped to a `Query` collection instead of the `Query` collection itself. This allows you to change the query arguments by updating `attachments.props` instead of fetching the mirrored arguments, changing them, and passing them to `wp.media.query()` again.

fixes #21921, see #21390, #21809.


git-svn-id: http://core.svn.wordpress.org/trunk@21898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-18 21:42:29 +00:00
..
crop Category AJAX fixes from mdawaffe. fixes #3343 2007-01-19 00:49:01 +00:00
imgareaselect Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
jcrop Remove Jcrop non-minified files. see #20728. 2012-08-28 18:03:52 +00:00
jquery jQuery 1.8.1 final. Also restores jQuery.noConflict(). props ocean90, fixes #21736. 2012-09-01 20:47:07 +00:00
plupload Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated. 2012-09-17 00:59:40 +00:00
swfupload Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
thickbox Switch to sans-serif for the font stack in Thickbox as we have done elsewhere. props wet, fixes #20268. 2012-09-13 17:08:01 +00:00
tinymce Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated. 2012-09-17 00:59:40 +00:00
admin-bar.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
admin-bar.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
autosave.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
autosave.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
backbone.min.js Please welcome Underscore.js and Backbone.js to core. fixes #21664. 2012-08-22 22:24:20 +00:00
colorpicker.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
colorpicker.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
comment-reply.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
comment-reply.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-base.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-base.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-loader.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-loader.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-preview.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-preview.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
hoverIntent.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
hoverIntent.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
json2.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
json2.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
media-models.js Allow JS Attachments models to be searchable and sortable. 2012-09-18 21:42:29 +00:00
media-models.min.js Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated. 2012-09-17 00:59:40 +00:00
media-views.js Allow JS Attachments models to be searchable and sortable. 2012-09-18 21:42:29 +00:00
media-views.min.js Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated. 2012-09-17 00:59:40 +00:00
quicktags.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
quicktags.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
swfobject.js Update swfobject 2012-04-17 23:09:29 +00:00
tw-sack.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
tw-sack.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
underscore.min.js Please welcome Underscore.js and Backbone.js to core. fixes #21664. 2012-08-22 22:24:20 +00:00
wp-ajax-response.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-ajax-response.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-list-revisions.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-list-revisions.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-lists.js Fix adding and updating from the Custom Fields meta box. Broken in [21205]. props SergeyBiryukov. see #21829 for trunk. 2012-09-07 15:49:20 +00:00
wp-lists.min.js Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated. 2012-09-17 00:59:40 +00:00
wp-pointer.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-pointer.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wplink.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wplink.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00