CoreFiles by mySites.guru
custom-background.js24 lines, 579 bytes, from wordpress-3.5-beta2.zip
Raw History Compare with 3.5-beta-1
md5
eec36f20191da3212bef7d4a582ff8be
sha1
4847f96f3a7f19e2fbd75c8d29b01d7f48e2541c
sha256
3ef7ce001c0e9deb61fbc45a0c6ac3b24becc5ddf56c29e98188047dd31c637f
(function($) {

	$(document).ready(function() {
		var bgImage = $("#custom-background-image");

		$('#background-color').wpColorPicker({
			change: function( event, ui ) {
				bgImage.css('background-color', ui.color.toString());
			},
			clear: function() {
				bgImage.css('background-color', '');
			}
		});

		$('input[name="background-position-x"]').change(function() {
			bgImage.css('background-position', $(this).val() + ' top');
		});

		$('input[name="background-repeat"]').change(function() {
			bgImage.css('background-repeat', $(this).val());
		});
	});

})(jQuery);

The same content is in 2 releases, WordPress 3.5-beta-1 to 3.5-beta2. See them all, or every version of this file.