wordpress-develop/src/wp-includes/js
Scott Taylor af71d22742 Add two properties to media.model.Attachments.propmap: include and exclude, which are aliases for post__in and post__not_in.
This allows you to instantiate a library that includes and/or excludes specific attachments by passing a single ID or an array of IDs.

Example usage:
{{{
wp.media({frame: 'post', library: {include: [414, 415]}}).open()
wp.media({frame: 'post', library: {include: 414}}).open()
wp.media({frame: 'post', library: {exclude: [414, 415]}}).open()
wp.media({frame: 'post', library: {exclude: 414}}).open()
}}}

Fixes #26587.


git-svn-id: https://develop.svn.wordpress.org/trunk@29759 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 03:37:06 +00:00
..
crop New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
imgareaselect Update imgAreaSelect to 0.9.10. fixes #25370. 2013-09-21 10:42:55 +00:00
jcrop Update Jcrop to 0.9.12 (unused in WP core). 2013-09-21 12:45:47 +00:00
jquery Fix unexpected replacement of a previous tag when selecting a tag from autosuggest results. 2014-06-26 16:07:36 +00:00
mediaelement Upgrade MediaElement to 2.15.1. 2014-09-11 17:43:05 +00:00
plupload Plupload: Restore 3.8 handles and filenames to avoid breaking plugins. 2014-04-14 00:06:03 +00:00
swfupload Fix some documentation typos in various core files. 2014-08-13 03:55:10 +00:00
thickbox Fix some documentation typos in various core files. 2014-08-13 03:55:10 +00:00
tinymce TinyMCE: fix image captions regexp when wpautop is disabled in wp_editor(). Fixes #29592 for trunk. 2014-09-10 23:02:05 +00:00
admin-bar.js Make older mobile browsers and IE7 usable: 2013-12-09 02:40:32 +00:00
autosave.js Autosave: prevent setting multiple stale wp-saving-post-* cookies when the browser disregards "session cookies" expiration on quit: 2014-08-22 00:24:56 +00:00
backbone.js Update Backbone to version 1.1.2. 2014-02-22 15:41:50 +00:00
backbone.min.js Update Backbone to version 1.1.2. 2014-02-22 15:41:50 +00:00
colorpicker.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
comment-reply.js Fix JSHint errors in six files. 2013-11-15 04:41:51 +00:00
customize-base.js Add some docs to Customizer JS. 2014-08-08 22:09:46 +00:00
customize-loader.js Add some docs to Customizer JS. 2014-08-08 22:09:46 +00:00
customize-models.js Customizer: Allow to skip cropping header images if image width is smaller than or equal to theme width. 2014-04-25 20:24:28 +00:00
customize-preview-widgets.js Customizer: Introduce WP_Customize_Control::active() method to determine whether the control is relevant to the current context (i.e. to the current URL being previewed). 2014-07-09 23:57:29 +00:00
customize-preview.js Add some docs to Customizer JS. 2014-08-08 23:30:30 +00:00
customize-views.js Customizer: Avoid hiding 'Remove' buttons unrelated to custom headers. 2014-05-06 04:13:52 +00:00
heartbeat.js Fix some documentation typos in various core files. 2014-08-13 03:55:10 +00:00
hoverIntent.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
json2.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
masonry.min.js Update the Masonry JavaScript library to version 3. 2014-02-25 19:52:57 +00:00
mce-view.js TinyMCE wpView: fix 'undefined' head when not adding more stylesheets to the sandbox iframe, fixes #29399 2014-08-27 18:22:51 +00:00
media-audiovideo.js Fix some documentation typos in various core files. 2014-08-13 03:55:10 +00:00
media-editor.js Media modal: when inserting content, prefer the editor id passed while opening the modal. wpActiveEditor can change in the background. (Includes some precommit prefixed selectors.) Fixes #28173 2014-08-25 19:36:12 +00:00
media-grid.js Media library: Unify headers between view modes. 2014-08-26 15:57:20 +00:00
media-models.js Add two properties to media.model.Attachments.propmap: include and exclude, which are aliases for post__in and post__not_in. 2014-09-23 03:37:06 +00:00
media-views.js Media Grid: 2014-09-21 18:51:41 +00:00
quicktags.js Editor: 2014-03-29 23:57:13 +00:00
shortcode.js Shortcode JS: Avoid errors when an escaped shortcode includes a newline between brackets. 2014-05-01 03:36:27 +00:00
swfobject.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
tw-sack.js New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00
underscore.js Update Backbone from 1.0 to 1.1. 2014-02-13 07:33:29 +00:00
underscore.min.js Update Backbone from 1.0 to 1.1. 2014-02-13 07:33:29 +00:00
utils.js Fix the wp-settings-* cookies used in getUserSetting()/setUserSetting(). They should be set without COOKIE_DOMAIN to work properly for sub-domains. Fixes #29095. 2014-08-13 02:46:18 +00:00
wp-ajax-response.js Fix JSHint errors in the old XML-based ajax response JS. 2013-11-14 05:42:06 +00:00
wp-auth-check.js Heartbeat: update wp-auth-check to use the new "connectNow()" method after a successful login, see #25073. 2013-12-02 18:46:28 +00:00
wp-backbone.js Update media-views and wp.Backbone.View for Backbone 1.1. 2014-02-13 07:36:01 +00:00
wp-list-revisions.js Fix JSHint errors in two files. see #25957, #25864. (Similar names but separate files.) 2013-11-15 06:24:01 +00:00
wp-lists.js Fix double avatars and JS errors when spamming/trashing comments. 2014-03-26 23:13:43 +00:00
wp-pointer.js Fix JSHint errors in six files. 2013-11-15 04:41:51 +00:00
wp-util.js Fix JSHint errors in two files. see #25957, #25864. (Similar names but separate files.) 2013-11-15 06:24:01 +00:00
wpdialog.js TinyMCE 4.0.12, first run. 2013-12-28 23:52:04 +00:00
wplink.js wpLink: add custom open and close events, props bradyvercher, fixes #28095. 2014-08-01 02:03:13 +00:00
zxcvbn-async.js Mark zxcvbn global to avoid JSHint errors. 2013-11-12 23:42:17 +00:00
zxcvbn.min.js Add a copyright notice to zxcvbn. fixes #25926. 2013-12-04 19:52:45 +00:00