Theme Customizer: Allow color control inputs to change the corresponding setting (use sync instead of link). fixes #20873.

git-svn-id: https://develop.svn.wordpress.org/trunk@21022 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-06-07 17:25:00 +00:00
parent 3210a999eb
commit f9bd63371b
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@
this.farbtastic = $.farbtastic( this.container.find('.farbtastic-placeholder'), control.setting.set ); this.farbtastic = $.farbtastic( this.container.find('.farbtastic-placeholder'), control.setting.set );
// Only pass through values that are valid hexes/empty. // Only pass through values that are valid hexes/empty.
input.link( this.setting ).validate = function( to ) { input.sync( this.setting ).validate = function( to ) {
return rhex.test( to ) ? to : null; return rhex.test( to ) ? to : null;
}; };