Changeset 20121
- Timestamp:
- 03/06/2012 02:14:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/customize-controls.dev.js
r20120 r20121 173 173 toggle = parent.siblings('a'), 174 174 value = api( parent.siblings('input').prop('name').replace( api.settings.prefix, '' ) ), 175 farb ;175 farb, update; 176 176 177 177 value.validate = validateColor; … … 183 183 }); 184 184 185 value.bind(function( color ) {185 update = function( color ) { 186 186 color = '#' + color; 187 187 toggle.css( 'background', color ); 188 188 farb.setColor( color ); 189 }); 189 }; 190 191 value.bind( update ); 192 update( value() ); 190 193 }); 191 194
Note: See TracChangeset
for help on using the changeset viewer.