Ticket #32004: 32004.patch
File 32004.patch, 10.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/media/controllers/collection-edit.js
20 20 * @param {string} attributes.menu Initial mode for the menu region. @todo this needs a better explanation. 21 21 * @param {boolean} [attributes.searchable=false] Whether the library is searchable. 22 22 * @param {boolean} [attributes.sortable=true] Whether the Attachments should be sortable. Depends on the orderby property being set to menuOrder on the attachments collection. 23 * @param {boolean} [attributes.date=true] Whether to show the date filter in the browser's toolbar. 23 24 * @param {boolean} [attributes.describe=true] Whether to offer UI to describe the attachments - e.g. captioning images in a gallery. 24 25 * @param {boolean} [attributes.dragInfo=true] Whether to show instructional text about the attachments being sortable. 25 26 * @param {boolean} [attributes.dragInfoText] Instructional text about the attachments being sortable. … … 43 44 defaults: { 44 45 multiple: false, 45 46 sortable: true, 47 date: false, 46 48 searchable: false, 47 49 content: 'browse', 48 50 describe: true, -
src/wp-includes/js/media/controllers/gallery-edit.js
18 18 * @param {boolean} [attributes.multiple=false] Whether multi-select is enabled. 19 19 * @param {boolean} [attributes.searchable=false] Whether the library is searchable. 20 20 * @param {boolean} [attributes.sortable=true] Whether the Attachments should be sortable. Depends on the orderby property being set to menuOrder on the attachments collection. 21 * @param {boolean} [attributes.date=true] Whether to show the date filter in the browser's toolbar. 21 22 * @param {string|false} [attributes.content=browse] Initial mode for the content region. 22 23 * @param {string|false} [attributes.toolbar=image-details] Initial mode for the toolbar region. 23 24 * @param {boolean} [attributes.describe=true] Whether to offer UI to describe attachments - e.g. captioning images in a gallery. … … 42 43 multiple: false, 43 44 searchable: false, 44 45 sortable: true, 46 date: false, 45 47 display: false, 46 48 content: 'browse', 47 49 toolbar: 'gallery-edit', -
src/wp-includes/js/media/views/attachments/browser.js
8 8 * @augments wp.Backbone.View 9 9 * @augments Backbone.View 10 10 * 11 * @param {object} options12 * @param { object}[options.filters=false] Which filters to show in the browser's toolbar.13 * Accepts 'uploaded' and 'all'.14 * @param { object}[options.search=true] Whether to show the search interface in the15 * browser's toolbar.16 * @param { object}[options.date=true] Whether to show the date filter in the17 * browser's toolbar.18 * @param { object}[options.display=false] Whether to show the attachments display settings19 * view in the sidebar.20 * @param {bool |string} [options.sidebar=true] Whether to create a sidebar for the browser.21 * Accepts true, false, and 'errors'.11 * @param {object} [options] The options hash passed to the view. 12 * @param {boolean|string} [options.filters=false] Which filters to show in the browser's toolbar. 13 * Accepts 'uploaded' and 'all'. 14 * @param {boolean} [options.search=true] Whether to show the search interface in the 15 * browser's toolbar. 16 * @param {boolean} [options.date=true] Whether to show the date filter in the 17 * browser's toolbar. 18 * @param {boolean} [options.display=false] Whether to show the attachments display settings 19 * view in the sidebar. 20 * @param {boolean|string} [options.sidebar=true] Whether to create a sidebar for the browser. 21 * Accepts true, false, and 'errors'. 22 22 */ 23 23 var View = wp.media.View, 24 24 mediaTrash = wp.media.view.settings.mediaTrash, -
src/wp-includes/js/media/views/frame/select.js
131 131 sortable: state.get('sortable'), 132 132 search: state.get('searchable'), 133 133 filters: state.get('filterable'), 134 date: state.get('date'), 134 135 display: state.has('display') ? state.get('display') : state.get('displaySettings'), 135 136 dragInfo: state.get('dragInfo'), 136 137 -
src/wp-includes/js/media-views.js
124 124 * @param {string} attributes.menu Initial mode for the menu region. @todo this needs a better explanation. 125 125 * @param {boolean} [attributes.searchable=false] Whether the library is searchable. 126 126 * @param {boolean} [attributes.sortable=true] Whether the Attachments should be sortable. Depends on the orderby property being set to menuOrder on the attachments collection. 127 * @param {boolean} [attributes.date=true] Whether to show the date filter in the browser's toolbar. 127 128 * @param {boolean} [attributes.describe=true] Whether to offer UI to describe the attachments - e.g. captioning images in a gallery. 128 129 * @param {boolean} [attributes.dragInfo=true] Whether to show instructional text about the attachments being sortable. 129 130 * @param {boolean} [attributes.dragInfoText] Instructional text about the attachments being sortable. … … 147 148 defaults: { 148 149 multiple: false, 149 150 sortable: true, 151 date: false, 150 152 searchable: false, 151 153 content: 'browse', 152 154 describe: true, … … 835 837 * @param {boolean} [attributes.multiple=false] Whether multi-select is enabled. 836 838 * @param {boolean} [attributes.searchable=false] Whether the library is searchable. 837 839 * @param {boolean} [attributes.sortable=true] Whether the Attachments should be sortable. Depends on the orderby property being set to menuOrder on the attachments collection. 840 * @param {boolean} [attributes.date=true] Whether to show the date filter in the browser's toolbar. 838 841 * @param {string|false} [attributes.content=browse] Initial mode for the content region. 839 842 * @param {string|false} [attributes.toolbar=image-details] Initial mode for the toolbar region. 840 843 * @param {boolean} [attributes.describe=true] Whether to offer UI to describe attachments - e.g. captioning images in a gallery. … … 859 862 multiple: false, 860 863 searchable: false, 861 864 sortable: true, 865 date: false, 862 866 display: false, 863 867 content: 'browse', 864 868 toolbar: 'gallery-edit', … … 3680 3684 * @augments wp.Backbone.View 3681 3685 * @augments Backbone.View 3682 3686 * 3683 * @param {object} options3684 * @param { object}[options.filters=false] Which filters to show in the browser's toolbar.3685 * Accepts 'uploaded' and 'all'.3686 * @param { object}[options.search=true] Whether to show the search interface in the3687 * browser's toolbar.3688 * @param { object}[options.date=true] Whether to show the date filter in the3689 * browser's toolbar.3690 * @param { object}[options.display=false] Whether to show the attachments display settings3691 * view in the sidebar.3692 * @param {bool |string} [options.sidebar=true] Whether to create a sidebar for the browser.3693 * Accepts true, false, and 'errors'.3687 * @param {object} [options] The options hash passed to the view. 3688 * @param {boolean|string} [options.filters=false] Which filters to show in the browser's toolbar. 3689 * Accepts 'uploaded' and 'all'. 3690 * @param {boolean} [options.search=true] Whether to show the search interface in the 3691 * browser's toolbar. 3692 * @param {boolean} [options.date=true] Whether to show the date filter in the 3693 * browser's toolbar. 3694 * @param {boolean} [options.display=false] Whether to show the attachments display settings 3695 * view in the sidebar. 3696 * @param {boolean|string} [options.sidebar=true] Whether to create a sidebar for the browser. 3697 * Accepts true, false, and 'errors'. 3694 3698 */ 3695 3699 var View = wp.media.View, 3696 3700 mediaTrash = wp.media.view.settings.mediaTrash, … … 5956 5960 sortable: state.get('sortable'), 5957 5961 search: state.get('searchable'), 5958 5962 filters: state.get('filterable'), 5963 date: state.get('date'), 5959 5964 display: state.has('display') ? state.get('display') : state.get('displaySettings'), 5960 5965 dragInfo: state.get('dragInfo'), 5961 5966