Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30031


Ignore:
Timestamp:
10/18/2014 05:25:00 PM (10 years ago)
Author:
westonruter
Comment:

In 30031.diff:

  • Update ColorControl's wpColorPicker to update UI based on setting changes
  • Update TwentyFifteen's colorScheme control to properly interact with the API, using wp.customize.control() instead of traversing DOM for other controls' container elements; also, now stop manually updating color control UIs since setting change will do this automatically now.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30031

    • Property Keywords has-patch added
  • Ticket #30031 – Description

    initial v1  
    44#!js
    55var parentSection = this.container.closest( '.control-section' ),
    6     backgroundColor  = parentSection.find( '#customize-control-background_color .color-picker-hex' );
     6    backgroundColor = parentSection.find( '#customize-control-background_color .color-picker-hex' );
    77// ...
    88backgroundColor.val( colorScheme[value].colors[0] )
     
    1313
    1414{{{
     15#!js
    1516wp.customize('background_color').set( '#000000' )
    1617wp.customize('background_color').set( '#999999' )