CoreFiles by mySites.guru
custom-background.min.js1 lines, 896 bytes, from wordpress-3.5.zip
Raw History Compare with 3.4.2
md5
2efa9ea39be6f21776bf7ce5c28a094b
sha1
c49e20cf04c12b471ca4d9e51ee042b905cdfa4e
sha256
36e8a6a929b2c5039e270ee9986dba486e0d52d936b37d5a8e16148861a849b7
(function(a){a(document).ready(function(){var b=a("#custom-background-image"),c;a("#background-color").wpColorPicker({change:function(d,e){b.css("background-color",e.color.toString())},clear:function(){b.css("background-color","")}});a('input[name="background-position-x"]').change(function(){b.css("background-position",a(this).val()+" top")});a('input[name="background-repeat"]').change(function(){b.css("background-repeat",a(this).val())});a("#choose-from-library-link").click(function(e){var d=a(this);e.preventDefault();if(c){c.open();return}c=wp.media.frames.customBackground=wp.media({title:d.data("choose"),library:{type:"image"},button:{text:d.data("update"),close:false}});c.on("select",function(){var f=c.state().get("selection").first();a.post(ajaxurl,{action:"set-background-image",attachment_id:f.id,size:"full"}).done(function(){window.location.reload()})});c.open()})})})(jQuery);

The same content is in 12 releases, WordPress 3.5-RC4 to 3.6.1. See them all, or every version of this file.