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

The same content is in 76 releases, WordPress 3.7-beta1 to 3.8.33. See them all, or every version of this file.