[wp-trac] [WordPress Trac] #26385: Color picker doesn't display initial colour

WordPress Trac noreply at wordpress.org
Wed Dec 4 02:55:21 UTC 2013


#26385: Color picker doesn't display initial colour
----------------------------+-----------------------------
 Reporter:  pkwooster       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 The new iris based admin colour picker does not display the initial colour
 in the "toggle" box.  The colour of the toggle is updated as the cursor is
 moved but disappears when the page refreshes.   The problem is a missing
 '#' in colour-picker.js near line 34:
 {{{
 --- wp-admin/js/color-picker.js (revision 26486)
 +++ wp-admin/js/color-picker.js (working copy)
 @@ -31,7 +31,7 @@
                         // Set up HTML structure, hide things
                         el.addClass( 'wp-color-picker' ).hide().wrap(
 _wrap );
                         self.wrap = el.parent();
 -                       self.toggler = $( _before ).insertBefore( el
 ).css( { backgroundColor: self.initialValue } ).attr( 'title',
 wpColorPickerL10n.pick ).attr( 'data-current', wpColorPickerL10n.current
 );
 +                       self.toggler = $( _before ).insertBefore( el
 ).css( { backgroundColor: '#' + self.initialValue } ).attr( 'title',
 wpColorPickerL10n.pick ).attr( 'data-current', wpColorPickerL10n.current
 );
                         self.pickerContainer = $( _after ).insertAfter( el
 );
                         self.button = $( _button );
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26385>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list