Ticket #21206: color-picker.js.patch
File color-picker.js.patch, 643 bytes (added by , 13 years ago) |
---|
-
color-picker.js
112 112 return this.element.iris( "option", "color" ); 113 113 114 114 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; 115 123 } 116 124 } 117 125