Ticket #25877: 25877.vars.diff
File 25877.vars.diff, 1.1 KB (added by , 11 years ago) |
---|
-
src/wp-admin/js/color-picker.js
4 4 var _before = '<a tabindex="0" class="wp-color-result" />', 5 5 _after = '<div class="wp-picker-holder" />', 6 6 _wrap = '<div class="wp-picker-container" />', 7 _button = '<input type="button" class="button button-small hidden" />'; 8 7 _button = '<input type="button" class="button button-small hidden" />', 9 8 // jQuery UI Widget constructor 10 varColorPicker = {9 ColorPicker = { 11 10 options: { 12 11 defaultColor: false, 13 12 change: false, … … 19 18 // bail early for unsupported Iris. 20 19 if ( ! $.support.iris ) 21 20 return; 22 var self = this ;23 varel = self.element;21 var self = this, 22 el = self.element; 24 23 25 24 $.extend( self.options, el.data() ); 26 25 … … 126 125 127 126 this.options.defaultColor = newDefaultColor; 128 127 } 129 } 128 }; 130 129 131 130 $.widget( 'wp.wpColorPicker', ColorPicker ); 132 }( jQuery ) ); 133 No newline at end of file 131 }( jQuery ) );