WordPress/wp-admin/js/media-gallery.min.js
desrosj 1c26077cf1 Build/Test Tools: Update several dependencies in the 5.6 branch.
This backports several dependency updates to the 5.6 branch as a part of #52341 to allow all branches receiving security updates to run on NodeJS 14.x.

Backports [49933,49937,49939,49940,49983,49989,49990,50016,50017] to the 5.6 branch.
See #51801, #52341.
Built from https://develop.svn.wordpress.org/branches/5.6@50023


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-26 15:18:33 +00:00

2 lines
613 B
JavaScript

/*! This file is auto-generated */
jQuery(function(o){o("body").bind("click.wp-gallery",function(a){var e,t,n=o(a.target);n.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=n.data("location"),a.preventDefault()):n.hasClass("wp-set-background")&&(e=n.data("attachment-id"),t=o('input[name="attachments['+e+'][image-size]"]:checked').val(),n=o("#_wpnonce").val()&&"",jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:e,_ajax_nonce:n,size:t},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),a.preventDefault())})});