Make WordPress Core

Ticket #21206: color-picker.js.patch

File color-picker.js.patch, 643 bytes (added by dgwyer, 13 years ago)
  • color-picker.js

     
    112112                                return this.element.iris( "option", "color" );
    113113
    114114                        this.element.iris( "option", "color", newColor );
     115                },
     116                //$("#input").wpColorPicker('default_color') returns the current default color
     117                //$("#input").wpColorPicker('default_color', newDefaultColor) to set
     118                default_color: function( newDefaultColor ) {
     119                        if ( newDefaultColor === undef )
     120                                return this.options.defaultColor;
     121
     122                        this.options.defaultColor = newDefaultColor;
    115123                }
    116124        }
    117125