mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-19 17:15:16 +01:00
0b6cf76853
Replaces Farbtastic. May change further in response to user testing. git-svn-id: http://core.svn.wordpress.org/trunk@22030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
24 lines
579 B
JavaScript
24 lines
579 B
JavaScript
(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); |