diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
index 3d8d9d7..c9b951a 100644
|
|
|
631 | 631 | /** |
632 | 632 | * A state for choosing an attachment from the media library. |
633 | 633 | * |
634 | | * @constructor |
| 634 | * @class |
635 | 635 | * @augments wp.media.controller.State |
636 | 636 | * @augments Backbone.Model |
| 637 | * |
| 638 | * @param {object} [options] The options hash passed to the state. |
| 639 | * @param {string} [options.id=library] Unique identifier. |
| 640 | * @param {string} [options.title=Media library] Unused. |
| 641 | * @param {boolean} [options.multiple=false] Whether multi-select is enabled. |
| 642 | * @param {string} [options.content=upload] Initial mode for the content region. |
| 643 | * @param {string} [options.menu=default] Initial mode for the menu region. |
| 644 | * @param {string} [options.router=browse] Initial mode for the router region. |
| 645 | * @param {string} [options.toolbar=select] Initial mode for the toolbar region. |
| 646 | * @param {boolean} [options.searchable=true] Whether the library is searchable. |
| 647 | * @param {boolean|string} [options.filterable=false] Whether the library is filterable, and if so what filters should be shown. |
| 648 | * Accepts 'all', 'uploaded', or 'unattached'. |
| 649 | * @param {boolean} [options.sortable=true] Whether the Attachments view should be sortable when orderby property is menuOrder on the collection. |
| 650 | * @param {boolean} [options.autoSelect=true] Whether an uploaded attachment should be automatically added to the selection. |
| 651 | * @param {boolean} [options.contentUserSetting=true] Whether the content region's mode should be set and persisted per user. |
| 652 | * @param {boolean} [options.syncSelection=true] Whether the Attachments selection should be persisted from the last state. |
637 | 653 | */ |
638 | 654 | media.controller.Library = media.controller.State.extend({ |
639 | 655 | defaults: { |
640 | 656 | id: 'library', |
641 | 657 | title: l10n.mediaLibraryTitle, |
642 | | // Selection defaults. @see media.model.Selection |
643 | 658 | multiple: false, |
644 | | // Initial region modes. |
645 | 659 | content: 'upload', |
646 | 660 | menu: 'default', |
647 | 661 | router: 'browse', |
648 | 662 | toolbar: 'select', |
649 | | // Attachments browser defaults. @see media.view.AttachmentsBrowser |
650 | 663 | searchable: true, |
651 | 664 | filterable: false, |
652 | 665 | sortable: true, |
653 | | |
654 | 666 | autoSelect: true, |
655 | 667 | describe: false, |
656 | | // Uses a user setting to override the content mode. |
657 | 668 | contentUserSetting: true, |
658 | | // Sync the selection from the last state when 'multiple' matches. |
659 | 669 | syncSelection: true |
660 | 670 | }, |
661 | 671 | |