WordPress.org

Make WordPress Core

Changeset 30330


Ignore:
Timestamp:
11/13/2014 12:33:27 PM (4 years ago)
Author:
ocean90
Message:

Color Picker: Allow to override mode and width values for Iris via wpColorPicker options.

props jtsternberg.
fixes #30182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/color-picker.js

    r29879 r30330  
    1616            clear: false,
    1717            hide: true,
    18             palettes: true
     18            palettes: true,
     19            width: 255,
     20            mode: 'hsv'
    1921        },
    2022        _create: function() {
     
    5254                target: self.pickerContainer,
    5355                hide: self.options.hide,
    54                 width: 255,
    55                 mode: 'hsv',
     56                width: self.options.width,
     57                mode: self.options.mode,
    5658                palettes: self.options.palettes,
    5759                change: function( event, ui ) {
Note: See TracChangeset for help on using the changeset viewer.