diff --git a/src/js/media/controllers/collection-add.js b/src/js/media/controllers/collection-add.js index aab6bb03e331b..5f81e8fd46d1f 100644 --- a/src/js/media/controllers/collection-add.js +++ b/src/js/media/controllers/collection-add.js @@ -17,7 +17,9 @@ var Selection = wp.media.model.Selection, * @param {object} [attributes] The attributes hash passed to the state. * @param {string} [attributes.id=library] Unique identifier. * @param {string} attributes.title Title for the state. Displays in the frame's title region. - * @param {boolean} [attributes.multiple=add] Whether multi-select is enabled. @todo 'add' doesn't seem do anything special, and gets used as a boolean. + * @param {boolean|string} [attributes.multiple=add] Whether multi-select is enabled. Accepts 'add' or true. + * When set to true, requires SHIFT/CMD/CTRL to select multiple items. + * When set to 'add', allows selecting multiple items by clicking thumbnails. * @param {wp.media.model.Attachments} [attributes.library] The attachments collection to browse. * If one is not supplied, a collection of attachments of the specified type will be created. * @param {boolean|string} [attributes.filterable=uploaded] Whether the library is filterable, and if so what filters should be shown. diff --git a/src/js/media/controllers/gallery-add.js b/src/js/media/controllers/gallery-add.js index adfb426816319..98f50f604fdf2 100644 --- a/src/js/media/controllers/gallery-add.js +++ b/src/js/media/controllers/gallery-add.js @@ -20,7 +20,9 @@ var Selection = wp.media.model.Selection, * @param {Object} [attributes] The attributes hash passed to the state. * @param {string} [attributes.id=gallery-library] Unique identifier. * @param {string} [attributes.title=Add to Gallery] Title for the state. Displays in the frame's title region. - * @param {boolean} [attributes.multiple=add] Whether multi-select is enabled. @todo 'add' doesn't seem do anything special, and gets used as a boolean. + * @param {boolean|string} [attributes.multiple=add] Whether multi-select is enabled. Accepts 'add' or true. + * When set to true, requires SHIFT/CMD/CTRL to select multiple items. + * When set to 'add', allows selecting multiple items by clicking thumbnails. * @param {wp.media.model.Attachments} [attributes.library] The attachments collection to browse. * If one is not supplied, a collection of all images will be created. * @param {boolean|string} [attributes.filterable=uploaded] Whether the library is filterable, and if so what filters should be shown.