Make WordPress Core

Ticket #30193: 30193.2.diff

File 30193.2.diff, 2.8 KB (added by ericlewis, 10 years ago)
  • src/wp-includes/js/media-views.js

    diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
    index 3d8d9d7..c9b951a 100644
     
    631631        /**
    632632         * A state for choosing an attachment from the media library.
    633633         *
    634          * @constructor
     634         * @class
    635635         * @augments wp.media.controller.State
    636636         * @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.
    637653         */
    638654        media.controller.Library = media.controller.State.extend({
    639655                defaults: {
    640656                        id:                 'library',
    641657                        title:              l10n.mediaLibraryTitle,
    642                         // Selection defaults. @see media.model.Selection
    643658                        multiple:           false,
    644                         // Initial region modes.
    645659                        content:            'upload',
    646660                        menu:               'default',
    647661                        router:             'browse',
    648662                        toolbar:            'select',
    649                         // Attachments browser defaults. @see media.view.AttachmentsBrowser
    650663                        searchable:         true,
    651664                        filterable:         false,
    652665                        sortable:           true,
    653 
    654666                        autoSelect:         true,
    655667                        describe:           false,
    656                         // Uses a user setting to override the content mode.
    657668                        contentUserSetting: true,
    658                         // Sync the selection from the last state when 'multiple' matches.
    659669                        syncSelection:      true
    660670                },
    661671