Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Current Color" string is ignored ( wpColorPickerL10n.current ). Data attribute is missing. #7

Closed
MichaelWeb opened this issue Apr 4, 2016 · 1 comment

Comments

@MichaelWeb
Copy link

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 );

@MichaelWeb MichaelWeb changed the title "Current Color" text string is ignored ( wpColorPickerL10n.current ). Data attribute is missing. "Current Color" string is ignored ( wpColorPickerL10n.current ). Data attribute is missing. Apr 4, 2016
@kallookoo
Copy link
Owner

Update code, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants