Changeset 63598
- Timestamp:
- 09/11/2026 06:29:08 AM (5 hours ago)
- Location:
- trunk
- Files:
-
- 36 edited
-
.eslintrc-jsdoc.js (modified) (1 diff)
-
src/js/_enqueues/admin/postbox.js (modified) (1 diff)
-
src/js/_enqueues/admin/site-health.js (modified) (1 diff)
-
src/js/_enqueues/lib/embed-template.js (modified) (2 diffs)
-
src/js/_enqueues/lib/lists.js (modified) (2 diffs)
-
src/js/_enqueues/wp/api.js (modified) (1 diff)
-
src/js/_enqueues/wp/dashboard.js (modified) (2 diffs)
-
src/js/_enqueues/wp/heartbeat.js (modified) (1 diff)
-
src/js/_enqueues/wp/media/editor.js (modified) (4 diffs)
-
src/js/_enqueues/wp/media/models.js (modified) (3 diffs)
-
src/js/_enqueues/wp/media/views.js (modified) (1 diff)
-
src/js/_enqueues/wp/updates.js (modified) (5 diffs)
-
src/js/media/controllers/embed.js (modified) (1 diff)
-
src/js/media/controllers/library.js (modified) (5 diffs)
-
src/js/media/controllers/region.js (modified) (4 diffs)
-
src/js/media/controllers/state-machine.js (modified) (2 diffs)
-
src/js/media/models/attachment.js (modified) (3 diffs)
-
src/js/media/models/attachments.js (modified) (16 diffs)
-
src/js/media/models/query.js (modified) (5 diffs)
-
src/js/media/models/selection.js (modified) (3 diffs)
-
src/js/media/views/attachment-compat.js (modified) (2 diffs)
-
src/js/media/views/attachment.js (modified) (14 diffs)
-
src/js/media/views/attachments.js (modified) (1 diff)
-
src/js/media/views/button.js (modified) (1 diff)
-
src/js/media/views/embed.js (modified) (1 diff)
-
src/js/media/views/frame.js (modified) (1 diff)
-
src/js/media/views/frame/post.js (modified) (3 diffs)
-
src/js/media/views/frame/select.js (modified) (3 diffs)
-
src/js/media/views/media-details.js (modified) (3 diffs)
-
src/js/media/views/media-frame.js (modified) (6 diffs)
-
src/js/media/views/menu.js (modified) (1 diff)
-
src/js/media/views/modal.js (modified) (5 diffs)
-
src/js/media/views/priority-list.js (modified) (4 diffs)
-
src/js/media/views/settings.js (modified) (2 diffs)
-
src/js/media/views/toolbar.js (modified) (3 diffs)
-
src/js/media/views/uploader/status.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.eslintrc-jsdoc.js
r63577 r63598 53 53 enableFixer: false, 54 54 } ], 55 'jsdoc/require-param-description': 'error', 55 56 'jsdoc/require-param-name': 'error', 56 57 'jsdoc/require-param-type': 'error', -
trunk/src/js/_enqueues/admin/postbox.js
r59988 r63598 247 247 * @memberof postboxes 248 248 * 249 * @param {string} pageThe page we are currently on.250 * @param {Object} [args]251 * @param {Function} args.pbshowA callback that is called when a postbox opens.252 * @param {Function} args.pbhideA callback that is called when a postbox closes.249 * @param {string} page The page we are currently on. 250 * @param {Object} [args] Optional arguments for the postbox toggles. 251 * @param {Function} [args.pbshow] A callback that is called when a postbox opens. 252 * @param {Function} [args.pbhide] A callback that is called when a postbox closes. 253 253 * @return {void} 254 254 */ -
trunk/src/js/_enqueues/admin/site-health.js
r63556 r63598 351 351 * Add the details of a failed asynchronous test to the list of test results. 352 352 * 353 * @param {string} url 354 * @param {string} description 353 * @param {string} url The URL of the failed test. 354 * @param {string} description The description of the failed test. 355 355 * @since 5.6.0 356 356 */ -
trunk/src/js/_enqueues/lib/embed-template.js
r63556 r63598 197 197 * Detect clicks to external (_top) links. 198 198 * 199 * @param {MouseEvent} event 199 * @param {MouseEvent} event The click event object. 200 200 */ 201 201 function linkClickHandler( event ) { … … 238 238 * Message handler. 239 239 * 240 * @param {MessageEvent} event 240 * @param {MessageEvent} event The message event object. 241 241 */ 242 242 function onMessage( event ) { -
trunk/src/js/_enqueues/lib/lists.js
r63514 r63598 740 740 * Registers event handlers to add, delete, and dim items. 741 741 * 742 * @param {string} elementId 742 * @param {string} elementId ID of the element to process, including leading #. 743 743 */ 744 744 process: function( elementId ) { … … 813 813 * Initializes wpList object. 814 814 * 815 * @param {Object} settings 815 * @param {Object} settings The settings for the wpList instance. 816 816 * @param {string} settings.url URL for ajax calls. Default: ajaxurl. 817 817 * @param {string} settings.type The HTTP method to use for Ajax requests. Default: 'POST'. -
trunk/src/js/_enqueues/wp/api.js
r63514 r63598 1547 1547 * Initialize the wp-api, optionally passing the API root. 1548 1548 * 1549 * @param {Object} [args] 1549 * @param {Object} [args] The arguments for initializing the wp-api. 1550 1550 * @param {string} [args.nonce] The nonce. Optional, defaults to wpApiSettings.nonce. 1551 1551 * @param {string} [args.apiRoot] The api root. Optional, defaults to wpApiSettings.root. -
trunk/src/js/_enqueues/wp/dashboard.js
r63407 r63598 704 704 * @since 5.5.2 705 705 * 706 * @param {number} startTimestamp 706 * @param {number} startTimestamp The start timestamp of the event. 707 707 * 708 708 * @return {number} The offset from UTC in minutes, with the sign flipped to be more intuitive. … … 717 717 * @since 5.5.2 718 718 * 719 * @param {number} startTimestamp 719 * @param {number} startTimestamp The start timestamp of the event. 720 720 * 721 721 * @return {string} A short time zone name, like `PST`, or a string like `GMT+5` if the abbreviation can't be determined. -
trunk/src/js/_enqueues/wp/heartbeat.js
r63514 r63598 245 245 * Handles pageshow event, specifically when page navigation is restored from back/forward cache. 246 246 * 247 * @param { jQuery.Event} event248 * @param {PageTransitionEvent} event.originalEvent 247 * @param {JQuery.Event} event The jQuery event object. 248 * @param {PageTransitionEvent} event.originalEvent The original PageTransitionEvent object. 249 249 */ 250 250 function ( event ) { -
trunk/src/js/_enqueues/wp/media/editor.js
r63514 r63598 342 342 * @class wp.media.collection 343 343 * 344 * @param {Object} attributes 344 * @param {Object} attributes The attributes for the media collection. 345 345 */ 346 346 wp.media.collection = function(attributes) { … … 787 787 * subsequently be called upon it. 788 788 * 789 * @param {string} id A slug used to identify the workflow.790 * @param {Object} [options={}] 789 * @param {string} id A slug used to identify the workflow. 790 * @param {Object} [options={}] The options for the media workflow. 791 791 * 792 792 * @this wp.media.editor … … 1002 1002 * Called when 'Insert From URL' source is not an image. Example: YouTube url. 1003 1003 * 1004 * @param {Object} embed 1004 * @param {Object} embed The embed object containing the link URL and link text. 1005 1005 * @return {Promise} A promise that resolves when the link has been sent to the editor. 1006 1006 */ … … 1019 1019 * 1020 1020 * @param {string} [id=undefined] Optional. A slug used to identify the workflow. 1021 * @param {Object} [options={}] 1021 * @param {Object} [options={}] The options for the media workflow. 1022 1022 * 1023 1023 * @this wp.media.editor -
trunk/src/js/_enqueues/wp/media/models.js
r63408 r63598 137 137 * Scales a set of dimensions to fit within bounding dimensions. 138 138 * 139 * @param {Object} dimensions 139 * @param {Object} dimensions The dimensions to scale. 140 * @param {number} dimensions.width The width to scale. 141 * @param {number} dimensions.height The height to scale. 142 * @param {number} dimensions.maxWidth The maxWidth to scale. 143 * @param {number} dimensions.maxHeight The maxHeight to scale. 140 144 * @return {Object} The scaled dimensions. 141 145 */ … … 183 187 * Useful for filenames. 184 188 * 185 * @param {string} string 186 * @param {number} [length=30] 187 * @param {string} [replacement=…] 189 * @param {string} string The string to truncate. 190 * @param {number} [length=30] The maximum length of the truncated string. 191 * @param {string} [replacement=…] The string to use as the ellipsis replacement. 188 192 * @return {string} The string, unless length is greater than string.length. 189 193 */ … … 229 233 * Shorthand for creating a new Attachments Query. 230 234 * 231 * @param {Object} [props] 235 * @param {Object} [props] The properties to filter the attachments by. 232 236 * @return {wp.media.model.Attachments} A collection of attachments matching the query. 233 237 */ -
trunk/src/js/_enqueues/wp/media/views.js
r63408 r63598 48 48 * Makes it easier to bind events using transitions. 49 49 * 50 * @param {string} selector 51 * @param {number} sensitivity 50 * @param {string} selector The CSS selector for the element to bind the transition event to. 51 * @param {number} sensitivity The maximum time to wait for the transition event before resolving the promise. 52 52 * @return {Promise} A promise that resolves when the transition has completed. 53 53 */ -
trunk/src/js/_enqueues/wp/updates.js
r63514 r63598 242 242 * @since 4.6.0 243 243 * 244 * @param {Object} data 244 * @param {Object} data The data for the admin notice. 245 245 * @param {*} [data.selector] Optional. Selector of an element to be replaced with the admin notice. 246 246 * @param {string} [data.id] Optional. Unique id that will be used as the notice's id attribute. … … 335 335 * @since 4.6.0 336 336 * 337 * @param {Object} response 337 * @param {Object} response The response object from the Ajax request. 338 338 * @param {Array} [response.debug] Optional. Debug information. 339 339 * @param {string} [response.errorCode] Optional. Error code for an error that occurred. … … 1595 1595 * @since 5.5.0 Auto-update "time to next update" text cleared. 1596 1596 * 1597 * @param {Object} response 1597 * @param {Object} response The response object from the Ajax request. 1598 1598 * @param {string} response.slug Slug of the theme to be updated. 1599 1599 * @param {Object} response.theme Updated theme. … … 1710 1710 * @since 4.6.0 1711 1711 * 1712 * @param {Object} args 1712 * @param {Object} args The arguments for the theme installation request. 1713 1713 * @param {string} args.slug Theme stylesheet. 1714 1714 * @param {installThemeSuccess} args.success Optional. Success callback. Default: wp.updates.installThemeSuccess … … 1902 1902 * @since 4.6.0 1903 1903 * 1904 * @param {Object} args 1904 * @param {Object} args The arguments for the theme deletion request. 1905 1905 * @param {string} args.slug Theme stylesheet. 1906 1906 * @param {deleteThemeSuccess} args.success Optional. Success callback. Default: wp.updates.deleteThemeSuccess -
trunk/src/js/media/controllers/embed.js
r63408 r63598 90 90 * Try scanning the embed as an image to discover its dimensions. 91 91 * 92 * @param {Object} attributes 92 * @param {Object} attributes The attributes for the embed scan. 93 93 */ 94 94 scanImage: function( attributes ) { -
trunk/src/js/media/controllers/library.js
r63516 r63598 159 159 * @since 3.5.0 160 160 * 161 * @param {wp.media.model.Attachment} attachment 161 * @param {wp.media.model.Attachment} attachment The attachment for which to create display settings. 162 162 * @return {Backbone.Model} A model representing the display settings for the attachment. 163 163 */ … … 176 176 * @since 3.6.0 177 177 * 178 * @param {wp.media.model.Attachment} attachment 178 * @param {wp.media.model.Attachment} attachment The attachment for which to get the default display settings. 179 179 * @return {Object} The default display settings for the attachment. 180 180 */ … … 197 197 * @since 4.4.1 198 198 * 199 * @param {wp.media.model.Attachment} attachment 199 * @param {wp.media.model.Attachment} attachment The attachment to check. 200 200 * @return {boolean} True if the attachment is an image, false otherwise. 201 201 */ … … 214 214 * @since 3.6.0 215 215 * 216 * @param {wp.media.model.Attachment} attachment 216 * @param {wp.media.model.Attachment} attachment The attachment to check. 217 217 * @return {boolean} True if the attachment can be embedded, false otherwise. 218 218 */ … … 263 263 * @since 3.5.0 264 264 * 265 * @param {wp.media.model.Attachment} attachment 265 * @param {wp.media.model.Attachment} attachment The attachment that was uploaded. 266 266 */ 267 267 uploading: function( attachment ) { -
trunk/src/js/media/controllers/region.js
r63408 r63598 34 34 * @since 3.5.0 35 35 * 36 * @param {string} mode 36 * @param {string} mode The mode to activate on the region. 37 37 * 38 38 * @fires Region#activate … … 73 73 * @since 3.5.0 74 74 * 75 * @param {string} mode 75 * @param {string} mode The mode to render on the region. 76 76 * 77 77 * @fires Region#create … … 132 132 * @since 3.5.0 133 133 * 134 * @param {Array|Object} views 135 * @param {Object} [options={}]134 * @param {Array|Object} views The views to set on the region. 135 * @param {Object} [options={}] Optional. Additional options for setting the views on the region. 136 136 * @return {wp.Backbone.Subviews} Subviews is returned to allow chaining. 137 137 */ … … 148 148 * @since 3.5.0 149 149 * 150 * @param {string} event 150 * @param {string} event The event to trigger on the region. 151 151 * @return {undefined|wp.media.controller.Region} Returns itself to allow chaining. 152 152 */ -
trunk/src/js/media/controllers/state-machine.js
r63516 r63598 36 36 * @since 3.5.0 37 37 * 38 * @param {string} id 38 * @param {string} id The ID of the state to fetch. If omitted, the active state is returned. 39 39 * @return {wp.media.controller.State} Returns a State model from 40 40 * the StateMachine collection. … … 61 61 * @since 3.5.0 62 62 * 63 * @param {string} id 63 * @param {string} id The ID of the state to set as active. 64 64 * 65 65 * @fires wp.media.controller.State#deactivate -
trunk/src/js/media/models/attachment.js
r63521 r63598 15 15 * Overrides Backbone.Model.sync 16 16 * 17 * @param {string} method18 * @param {wp.media.model.Attachment} model 19 * @param {Object} [options={}]17 * @param {string} method The method to be performed: 'read', 'update', or 'delete'. 18 * @param {wp.media.model.Attachment} model The attachment model being synced. 19 * @param {Object} [options={}] Optional. Additional options for the sync operation. 20 20 * 21 21 * @return {jQuery.Promise} A jQuery Promise that is resolved or rejected based on the success of the sync operation. … … 145 145 * @static 146 146 * 147 * @param {Object} attrs 147 * @param {Object} attrs The attributes for the new attachment model. 148 148 * @return {wp.media.model.Attachment} The newly created attachment model. 149 149 */ … … 159 159 * 160 160 * @static 161 * @param {string} idA string used to identify a model.162 * @param {Backbone.Model|undefined} attachment 161 * @param {string} id A string used to identify a model. 162 * @param {Backbone.Model|undefined} attachment The attachment model to retrieve or create. 163 163 * @return {wp.media.model.Attachment} 164 164 */ -
trunk/src/js/media/models/attachments.js
r63521 r63598 31 31 * Initializes the Attachments collection. 32 32 * 33 * @param {Array} [models=[]]Array of models used to populate the collection.34 * @param {Object} [options={}] 33 * @param {Array} [models=[]] Optional. Array of models used to populate the collection. 34 * @param {Object} [options={}] Optional. Additional options for the collection. 35 35 */ 36 36 initialize: function( models, options ) { … … 82 82 * @access private 83 83 * 84 * @param {Backbone.Model} model 85 * @param {string} orderby84 * @param {Backbone.Model} model The model that triggered the change. 85 * @param {string} orderby The new orderby value. 86 86 */ 87 87 _changeOrderby: function( model, orderby ) { … … 102 102 * @access private 103 103 * 104 * @param {Backbone.Model} model 105 * @param {boolean} query104 * @param {Backbone.Model} model The model that triggered the change. 105 * @param {boolean} query The new query value. 106 106 */ 107 107 _changeQuery: function( model, query ) { … … 118 118 * @access private 119 119 * 120 * @param {Backbone.Model} model 120 * @param {Backbone.Model} model The model that triggered the change. 121 121 */ 122 122 _changeFilteredProps: function( model ) { … … 164 164 * Checks whether an attachment is valid. 165 165 * 166 * @param {wp.media.model.Attachment} attachment 166 * @param {wp.media.model.Attachment} attachment The attachment to validate. 167 167 * @return {boolean} True if the attachment is valid, false otherwise. 168 168 */ … … 179 179 * Adds or removes an attachment to the collection depending on its validity. 180 180 * 181 * @param {wp.media.model.Attachment} attachment 182 * @param {Object} options181 * @param {wp.media.model.Attachment} attachment The attachment to validate and potentially add or remove. 182 * @param {Object} options Additional options for the operation. 183 183 * @return {wp.media.model.Attachments} Returns itself to allow chaining. 184 184 */ … … 199 199 * Adds or removes all attachments from another collection depending on each one's validity. 200 200 * 201 * @param {wp.media.model.Attachments} attachments 202 * @param {Object} [options={}]201 * @param {wp.media.model.Attachments} attachments The attachments collection to validate against. 202 * @param {Object} [options={}] Additional options for the operation. 203 203 * 204 204 * @fires wp.media.model.Attachments#reset … … 282 282 * @access private 283 283 * 284 * @param {wp.media.model.Attachments} attachment 285 * @param {wp.media.model.Attachments} attachments 286 * @param {Object} options284 * @param {wp.media.model.Attachments} attachment The attachment to validate. 285 * @param {wp.media.model.Attachments} attachments The attachments collection the attachment belongs to. 286 * @param {Object} options Additional options for the operation. 287 287 * 288 288 * @return {wp.media.model.Attachments} Returns itself to allow chaining. … … 302 302 * @access private 303 303 * 304 * @param {wp.media.model.Attachments} attachments 305 * @param {Object} options304 * @param {wp.media.model.Attachments} attachments The attachments collection to validate against. 305 * @param {Object} options Additional options for the operation. 306 306 * @return {wp.media.model.Attachments} Returns itself to allow chaining. 307 307 */ … … 356 356 * server persistence by itself. 357 357 * 358 * @param {Object} options 358 * @param {Object} options Additional options for the operation. 359 359 * @return {Promise} A promise that resolves when the request is complete. 360 360 */ … … 425 425 * 426 426 * @param {Object|Array} response The raw response Object/Array. 427 * @param {Object} xhr427 * @param {Object} xhr The XMLHttpRequest object. 428 428 * @return {Array} The array of model attributes to be added to the collection 429 429 */ … … 506 506 * and its subclasses. @see wp.media.model.Attachments._changeOrderby(). 507 507 * 508 * @param {Backbone.Model} a 509 * @param {Backbone.Model} b 510 * @param {Object} options508 * @param {Backbone.Model} a The first attachment model to compare. 509 * @param {Backbone.Model} b The second attachment model to compare. 510 * @param {Object} options Additional options for the comparison. 511 511 * @return {number} -1 if the first model should come before the second, 512 512 * 0 if they are of the same rank and … … 543 543 * to our server-side searching. 544 544 * 545 * @param {wp.media.model.Attachment} attachment 545 * @param {wp.media.model.Attachment} attachment The attachment to filter based on the search query. 546 546 * 547 547 * @this wp.media.model.Attachments … … 563 563 * 564 564 * @static 565 * @param {wp.media.model.Attachment} attachment 565 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its type. 566 566 * 567 567 * @this wp.media.model.Attachments … … 592 592 * 593 593 * @static 594 * @param {wp.media.model.Attachment} attachment 594 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its uploadedTo property. 595 595 * 596 596 * @this wp.media.model.Attachments … … 610 610 * 611 611 * @static 612 * @param {wp.media.model.Attachment} attachment 612 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its status property. 613 613 * 614 614 * @this wp.media.model.Attachments -
trunk/src/js/media/models/query.js
r63516 r63598 26 26 * 27 27 * @param {Array} [models=[]] Array of initial models to populate the collection. 28 * @param {Object} [options={}] 28 * @param {Object} [options={}] Additional options for initializing the query. 29 29 */ 30 30 initialize: function( models, options ) { … … 97 97 * Fetch more attachments from the server for the collection. 98 98 * 99 * @param {Object} [options={}] 99 * @param {Object} [options={}] Additional options for fetching more attachments. 100 100 * @return {Promise} A promise that resolves when the fetch is complete. 101 101 */ … … 125 125 * Overrides wp.media.model.Attachments.sync 126 126 * 127 * @param {string} method128 * @param {Backbone.Model} model 129 * @param {Object} [options={}]127 * @param {string} method The sync method to be used (e.g., 'read', 'create', 'update', 'delete'). 128 * @param {Backbone.Model} model The model to be synced. 129 * @param {Object} [options={}] Additional options for syncing the query. 130 130 * @return {Promise} A promise that resolves when the sync is complete. 131 131 */ … … 215 215 * @function 216 216 * 217 * @param {Object} [props] 218 * @param {Object} [props.order] 219 * @param {Object} [props.orderby] 220 * @param {Object} [props.include] 221 * @param {Object} [props.exclude] 222 * @param {Object} [props.s] 223 * @param {Object} [props.post_mime_type] 224 * @param {Object} [props.posts_per_page] 225 * @param {Object} [props.menu_order] 226 * @param {Object} [props.post_parent] 227 * @param {Object} [props.post_status] 228 * @param {Object} [props.author] 229 * @param {Object} [options] 217 * @param {Object} [props] The properties to initialize the query with. 218 * @param {Object} [props.order] The order in which to sort the query results. 219 * @param {Object} [props.orderby] The property by which to order the query results. 220 * @param {Object} [props.include] The IDs of attachments to include in the query. 221 * @param {Object} [props.exclude] The IDs of attachments to exclude from the query. 222 * @param {Object} [props.s] The search term to filter attachments by. 223 * @param {Object} [props.post_mime_type] The MIME type to filter attachments by. 224 * @param {Object} [props.posts_per_page] The number of attachments to retrieve per page. 225 * @param {Object} [props.menu_order] The menu order to filter attachments by. 226 * @param {Object} [props.post_parent] The parent post ID to filter attachments by. 227 * @param {Object} [props.post_status] The status to filter attachments by. 228 * @param {Object} [props.author] The author ID to filter attachments by. 229 * @param {Object} [options] Additional options for the query. 230 230 * 231 231 * @return {wp.media.model.Query} A new Attachments Query collection. … … 241 241 * Creates and returns an Attachments Query collection given the properties. 242 242 * 243 * @param {Object} [props] 244 * @param {Object} [options] 243 * @param {Object} [props] The properties to initialize the query with. 244 * @param {Object} [options] Additional options for the query. 245 245 * @return {Query} A new Attachments Query collection. 246 246 */ -
trunk/src/js/media/models/selection.js
r63408 r63598 19 19 * it receives no parameters. 20 20 * 21 * @param {Array} [models=[]]Array of models used to populate the collection.22 * @param {Object} [options={}] 21 * @param {Array} [models=[]] Array of models used to populate the collection. 22 * @param {Object} [options={}] Additional options for the selection. 23 23 */ 24 24 initialize: function( models, options ) { … … 36 36 * before adding a new attachment to it. 37 37 * 38 * @param {Array} models39 * @param {Object} options 38 * @param {Array} models The models to add to the selection. 39 * @param {Object} options Additional options for adding the models. 40 40 * @return {wp.media.model.Attachment[]} The added attachments. 41 41 */ … … 53 53 * Fired when toggling (clicking on) an attachment in the modal. 54 54 * 55 * @param {undefined|boolean|wp.media.model.Attachment} model 55 * @param {undefined|boolean|wp.media.model.Attachment} model The model to set as the single selection, or a boolean to clear it. 56 56 * 57 57 * @fires wp.media.model.Selection#selection:single -
trunk/src/js/media/views/attachment-compat.js
r63516 r63598 63 63 * Prevents the default action of the event. 64 64 * 65 * @param { Object} event65 * @param {JQuery.Event} event The jQuery event object associated with the action. 66 66 */ 67 67 preventDefault: function( event ) { … … 71 71 * Saves the attachment compat data. 72 72 * 73 * @param { Object} event73 * @param {JQuery.Event} event The jQuery event object associated with the action. 74 74 */ 75 75 save: function( event ) { -
trunk/src/js/media/views/attachment.js
r63516 r63598 174 174 * Toggles the selection state of the attachment. 175 175 * 176 * @param { Object} event176 * @param {JQuery.Event} event The jQuery event object that triggered the selection toggle. 177 177 */ 178 178 toggleSelectionHandler: function( event ) { … … 230 230 * Toggles the selection state of the attachment. 231 231 * 232 * @param {Object} options 232 * @param {Object} options The options for toggling the selection state of the attachment. 233 233 */ 234 234 toggleSelection: function( options ) { … … 323 323 * Selects the model in the selection. 324 324 * 325 * @param {Backbone.Model} model326 * @param {Backbone.Collection} collection 325 * @param {Backbone.Model} model The model to select. 326 * @param {Backbone.Collection} collection The collection containing the model. 327 327 */ 328 328 select: function( model, collection ) { … … 354 354 * Deselects the model in the selection. 355 355 * 356 * @param {Backbone.Model} model357 * @param {Backbone.Collection} collection 356 * @param {Backbone.Model} model The model to deselect. 357 * @param {Backbone.Collection} collection The collection containing the model. 358 358 */ 359 359 deselect: function( model, collection ) { … … 374 374 * Updates the view to reflect whether the model is the single model in the selection. 375 375 * 376 * @param {Backbone.Model} model377 * @param {Backbone.Collection} collection 376 * @param {Backbone.Model} model The model to check for details. 377 * @param {Backbone.Collection} collection The collection containing the model. 378 378 */ 379 379 details: function( model, collection ) { … … 391 391 * Gets the image size object for the specified size. 392 392 * 393 * @param {string} size 393 * @param {string} size The desired image size. 394 394 * @return {Object} Returns an object containing the image size information. 395 395 */ … … 426 426 * Update the model's setting with the value from the input. 427 427 * 428 * @param { Object} event428 * @param {JQuery.Event} event The jQuery event object that triggered the setting update. 429 429 */ 430 430 updateSetting: function( event ) { … … 479 479 * Updates the view's save status. 480 480 * 481 * @param {string} status 481 * @param {string} status The new save status to apply to the view. 482 482 * @return {wp.media.view.Attachment} Returns itself to allow chaining. 483 483 */ … … 523 523 * Removes the model from the collection. 524 524 * 525 * @param { Object} event525 * @param {JQuery.Event} event The jQuery event object that triggered the removal from the library. 526 526 */ 527 527 removeFromLibrary: function( event ) { … … 541 541 * removes it. 542 542 * 543 * @param { Object} event543 * @param {JQuery.Event} event The jQuery event object that triggered the selection toggle. 544 544 * @return {void} 545 545 */ … … 577 577 * @instance 578 578 * 579 * @param {Backbone.Model} model 580 * @param {string} value579 * @param {Backbone.Model} model The model containing the caption. 580 * @param {string} value The new caption value. 581 581 * @return {wp.media.view.Attachment} Returns itself to allow chaining. 582 582 */ … … 588 588 * @instance 589 589 * 590 * @param {Backbone.Model} model 591 * @param {string} value590 * @param {Backbone.Model} model The model containing the title. 591 * @param {string} value The new title value. 592 592 * @return {wp.media.view.Attachment} Returns itself to allow chaining. 593 593 */ … … 599 599 * @instance 600 600 * 601 * @param {Backbone.Model} model 602 * @param {string} value601 * @param {Backbone.Model} model The model containing the artist. 602 * @param {string} value The new artist value. 603 603 * @return {wp.media.view.Attachment} Returns itself to allow chaining. 604 604 */ … … 610 610 * @instance 611 611 * 612 * @param {Backbone.Model} model 613 * @param {string} value612 * @param {Backbone.Model} model The model containing the album. 613 * @param {string} value The new album value. 614 614 * @return {wp.media.view.Attachment} Returns itself to allow chaining. 615 615 */ -
trunk/src/js/media/views/attachments.js
r50831 r63598 366 366 * @since 3.5.0 367 367 * 368 * @param {wp.media.model.Attachment} attachment 368 * @param {wp.media.model.Attachment} attachment The attachment model for which to create a view. 369 369 * 370 370 * @return {wp.media.View} The created view. -
trunk/src/js/media/views/button.js
r63516 r63598 75 75 * Handles the click event. 76 76 * 77 * @param { Object} event77 * @param {JQuery.Event} event The jQuery event object for the click action. 78 78 */ 79 79 click: function( event ) { -
trunk/src/js/media/views/embed.js
r63516 r63598 33 33 * Sets the settings for the embed view. 34 34 * 35 * @param {Object} view 35 * @param {Object} view The view object to be set as the settings for the embed view. 36 36 */ 37 37 settings: function( view ) { -
trunk/src/js/media/views/frame.js
r63409 r63598 90 90 * Map activeMode collection events to the frame. 91 91 * 92 * @param {Backbone.Model} model 93 * @param {Backbone.Collection} collection 94 * @param {Object} options 92 * @param {Backbone.Model} model The model that triggered the event. 93 * @param {Backbone.Collection} collection The collection to which the model belongs. 94 * @param {Object} options The options object associated with the event. 95 95 */ 96 96 triggerModeEvents: function( model, collection, options ) { -
trunk/src/js/media/views/frame/post.js
r63516 r63598 264 264 * Handles the main menu for the frame. 265 265 * 266 * @param {wp.Backbone.View} view 266 * @param {wp.Backbone.View} view The menu view for the main menu. 267 267 */ 268 268 mainMenu: function( view ) { … … 295 295 * Handles the gallery menu for the frame. 296 296 * 297 * @param {wp.Backbone.View} view 297 * @param {wp.Backbone.View} view The menu view for the gallery menu. 298 298 */ 299 299 galleryMenu: function( view ) { … … 327 327 * Handles the playlist menu for the frame. 328 328 * 329 * @param {wp.Backbone.View} view The menu view .329 * @param {wp.Backbone.View} view The menu view for the playlist menu. 330 330 */ 331 331 playlistMenu: function( view ) { -
trunk/src/js/media/views/frame/select.js
r47122 r63598 109 109 * Render callback for the router region in the `browse` mode. 110 110 * 111 * @param {wp.media.view.Router} routerView 111 * @param {wp.media.view.Router} routerView The router view for the `browse` mode. 112 112 */ 113 113 browseRouter: function( routerView ) { … … 127 127 * Render callback for the content region in the `browse` mode. 128 128 * 129 * @param {wp.media.controller.Region} contentRegion 129 * @param {wp.media.controller.Region} contentRegion The content region for the `browse` mode. 130 130 */ 131 131 browseContent: function( contentRegion ) { … … 168 168 * Toolbars 169 169 * 170 * @param {Object} toolbar 171 * @param {Object} [options={}] 170 * @param {Object} toolbar The toolbar object for the `select` mode. 171 * @param {Object} [options={}] The options for creating the select toolbar view. 172 172 * @this wp.media.controller.Region 173 173 */ -
trunk/src/js/media/views/media-details.js
r63521 r63598 62 62 * @fires wp.media.view.MediaDetails#media:setting:remove 63 63 * 64 * @param { Event} e64 * @param {JQuery.Event} e The jQuery event object. 65 65 */ 66 66 removeSetting : function(e) { … … 95 95 * Adds a source to the media details view. 96 96 * 97 * @param {JQuery.Event} e The event object.97 * @param {JQuery.Event} e The jQuery event object. 98 98 */ 99 99 addSource : function( e ) { … … 185 185 * When multiple players in the DOM contain the same src, things get weird. 186 186 * 187 * @param {HTMLElement} elem 187 * @param {HTMLElement} elem The HTML element containing the media sources to be prepared. 188 188 * @return {HTMLElement} The prepared element. 189 189 */ -
trunk/src/js/media/views/media-frame.js
r63516 r63598 161 161 * Creates the title view. 162 162 * 163 * @param {Object} title 163 * @param {Object} title The title object for creating the title view. 164 164 * @this wp.media.controller.Region 165 165 */ … … 173 173 * Creates the menu view. 174 174 * 175 * @param {Object} menu 175 * @param {Object} menu The menu object for creating the menu view. 176 176 * @this wp.media.controller.Region 177 177 */ … … 204 204 * Creates the toolbar view. 205 205 * 206 * @param {Object} toolbar 206 * @param {Object} toolbar The toolbar object for creating the toolbar view. 207 207 * @this wp.media.controller.Region 208 208 */ … … 215 215 * Creates the router view. 216 216 * 217 * @param {Object} router 217 * @param {Object} router The router object for creating the router view. 218 218 * @this wp.media.controller.Region 219 219 */ … … 233 233 * Creates the iframe states. 234 234 * 235 * @param {Object} options 235 * @param {Object} options The options for creating the iframe states. 236 236 */ 237 237 createIframeStates: function( options ) { … … 272 272 * Creates the iframe content view. 273 273 * 274 * @param {Object} content 274 * @param {Object} content The content object for creating the iframe content view. 275 275 * @this wp.media.controller.Region 276 276 */ -
trunk/src/js/media/views/menu.js
r63516 r63598 52 52 * Creates a view for the given options and id. 53 53 * 54 * @param {Object} options 55 * @param {string} id 54 * @param {Object} options The options for creating the view. 55 * @param {string} id The id of the view to create. 56 56 * @return {wp.media.View} The view instance. 57 57 */ -
trunk/src/js/media/views/modal.js
r63409 r63598 135 135 * Closes the modal and triggers the close event. 136 136 * 137 * @param {Object} options 137 * @param {Object} [options={}] The options for closing the modal. 138 * @param {boolean} [options.escape] Whether the modal is being closed due to the escape key. 138 139 * @return {wp.media.view.Modal} Returns itself to allow chaining. 139 140 */ … … 188 189 * Handles the escape key press event to close the modal. 189 190 * 190 * @param { Object} event191 * @param {JQuery.Event} event The jQuery event object. 191 192 */ 192 193 escapeHandler: function( event ) { … … 200 201 * @since 6.7 201 202 * 202 * @param { Object} event The keydownevent object.203 * @param {JQuery.Event} event The jQuery event object. 203 204 */ 204 205 selectHandler: function( event ) { … … 233 234 * forwards events to the modal's controller. 234 235 * 235 * @param {string} id 236 * @param {string} id The ID of the event to propagate. 236 237 * @return {wp.media.view.Modal} Returns itself to allow chaining. 237 238 */ … … 248 249 * Handles keydown events within the modal. 249 250 * 250 * @param { Object} event251 * @param {JQuery.Event} event The jQuery keydown event object. 251 252 */ 252 253 keydown: function( event ) { -
trunk/src/js/media/views/priority-list.js
r63409 r63598 25 25 * Adds a view to the list, sorted by its priority. 26 26 * 27 * @param {string} id28 * @param {wp.media.View|Object} view 29 * @param {Object} options27 * @param {string} id The ID of the view to set. 28 * @param {wp.media.View|Object} view The view to set. 29 * @param {Object} options The options for setting the view. 30 30 * @return {wp.media.view.PriorityList} Returns itself to allow chaining. 31 31 */ … … 70 70 * Retrieves a view by its ID. 71 71 * 72 * @param {string} id 72 * @param {string} id The ID of the view to retrieve. 73 73 * @return {wp.media.View} Returns the view if found, otherwise undefined. 74 74 */ … … 79 79 * Removes a view by its ID. 80 80 * 81 * @param {string} id 81 * @param {string} id The ID of the view to remove. 82 82 * @return {wp.media.view.PriorityList} Returns itself to allow chaining. 83 83 */ … … 95 95 * Creates a view from an object of options. 96 96 * 97 * @param {Object} options 97 * @param {Object} options The options for creating the view. 98 98 * @return {wp.media.View} Returns the created view. 99 99 */ -
trunk/src/js/media/views/settings.js
r63516 r63598 53 53 * Updates the selected value for a setting. 54 54 * 55 * @param {string} key 55 * @param {string} key The key of the setting to update. 56 56 */ 57 57 update: function( key ) { … … 102 102 * Updates the model when a setting is changed. 103 103 * 104 * @param { Object} event104 * @param {JQuery.Event} event The jQuery event object associated with the setting change. 105 105 */ 106 106 updateHandler: function( event ) { -
trunk/src/js/media/views/toolbar.js
r63516 r63598 84 84 * Sets a view by its ID. 85 85 * 86 * @param {string} id87 * @param {Backbone.View|Object} view 88 * @param {Object} [options={}]86 * @param {string} id The ID of the view to set. 87 * @param {Backbone.View|Object} view The view to set. 88 * @param {Object} [options={}] The options for setting the view. 89 89 * @return {wp.media.view.Toolbar} Returns itself to allow chaining. 90 90 */ … … 122 122 * Retrieves a view by its ID. 123 123 * 124 * @param {string} id 124 * @param {string} id The ID of the view to retrieve. 125 125 * @return {wp.media.view.Button} The view associated with the given ID, or undefined if no view is found. 126 126 */ … … 131 131 * Unsets a view by its ID. 132 132 * 133 * @param {string} id 134 * @param {Object} options133 * @param {string} id The ID of the view to unset. 134 * @param {Object} [options={}] The options for unsetting the view. 135 135 * @return {wp.media.view.Toolbar} Returns itself to allow chaining. 136 136 */ -
trunk/src/js/media/views/uploader/status.js
r63409 r63598 108 108 * Escapes the filename to prevent XSS attacks. 109 109 * 110 * @param {string} filename 110 * @param {string} filename The name of the file to be escaped. 111 111 * @return {string} Escaped filename. 112 112 */ … … 117 117 * Handles an error event from the uploader queue. 118 118 * 119 * @param {Backbone.Model} error 119 * @param {Backbone.Model} error The error model from the uploader queue. 120 120 * @return {void} 121 121 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)