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

git-svn-id: http://core.svn.wordpress.org/trunk@21022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2012-06-07 17:25:00 +00:00
parent 3a2ea5ed37
commit 00ccc5f790

View File

@ -122,7 +122,7 @@
this.farbtastic = $.farbtastic( this.container.find('.farbtastic-placeholder'), control.setting.set );
// 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;
};