mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user