Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
GNU General Public License v2.0
131
stars
88
forks
source link
"Current Color" string is ignored ( wpColorPickerL10n.current ). Data attribute is missing. #7
Closed
MichaelWeb closed 8 years ago
https://github.com/23r9i0/wp-color-picker-alpha/blob/master/src/wp-color-picker-alpha.js#L62
To fix this issue replace :
self.toggler = $( _before ).insertBefore( el ).css( { backgroundColor : self.initialValue } ).attr( 'title', wpColorPickerL10n.pick ).data( 'current', wpColorPickerL10n.current );
with:
self.toggler = $( _before ).insertBefore( el ).css( { backgroundColor: self.initialValue } ).attr( 'title', wpColorPickerL10n.pick ).attr( 'data-current', wpColorPickerL10n.current );