Sha256: bd6b31903607cb2911e0cbfd0176e3293e908278cfa617489ef169a0a799f5ea
Contents?: true
Size: 537 Bytes
Versions: 6
Compression:
Stored size: 537 Bytes
Contents
jQuery(function(a){a("body").bind("click.wp-gallery",function(b){var c,d,e=a(b.target);e.hasClass("wp-set-header")?((window.dialogArguments||opener||parent||top).location.href=e.data("location"),b.preventDefault()):e.hasClass("wp-set-background")&&(c=e.data("attachment-id"),d=a('input[name="attachments['+c+'][image-size]"]:checked').val(),jQuery.post(ajaxurl,{action:"set-background-image",attachment_id:c,size:d},function(){var a=window.dialogArguments||opener||parent||top;a.tb_remove(),a.location.reload()}),b.preventDefault())})});
Version data entries
6 entries across 6 versions & 2 rubygems