Add Repeat-x/repeat-y support to Custom Backgrounds, Add Live preview of Repeat option, Use Thumbnail of background for Background Preview. Props jshreve. See #12186

git-svn-id: https://develop.svn.wordpress.org/trunk@13856 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-03-28 02:53:04 +00:00
parent da2927d104
commit d3eec153be
5 changed files with 59 additions and 37 deletions
+5 -2
View File
@@ -22,9 +22,12 @@ jQuery(document).ready(function() {
pickColor( hex );
});
jQuery('input[name="background-position"]').change(function() {
jQuery('#custom-background-image').css('text-align', jQuery(this).val());
jQuery('#custom-background-image').css('background-position', 'top '+jQuery(this).val());
});
jQuery('select[name="background-repeat"]').change(function() {
jQuery('#custom-background-image').css('background-repeat', jQuery(this).val());
});
farbtastic = jQuery.farbtastic('#colorPickerDiv', function(color) {
pickColor(color);
});