Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Colorpicker default value

  • gibilogic
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 7 months ago #2444 by gibilogic
Colorpicker default value was created by gibilogic
Hello!
I am using your most useful colorpicker JS. Thank you!

A question, when I try to DELETE a color, it always turns back to #000000. Is there any parameter that I need to set, to make it accept empty values?
Thank you very much for any suggestion.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #2446 by boggler
Replied by boggler on topic Colorpicker default value
I don't think it would convert back to #000000, there is a line in the colorpicker script that sets a default value of #ffffff, it is line 177 of the colorpicker.js script:
stringVal = '#ffffff';

if you don't want that then you can just delete the line.

But if you are getting a value of #000000 then I don't think that the colorpicker is producing this, it is a problem somewhere else in your code, perhaps you are wrongly initializing the value.
The following user(s) said Thank You: gibilogic

Please Log in or Create an account to join the conversation.

  • gibilogic
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 7 months ago #2447 by gibilogic
Replied by gibilogic on topic Colorpicker default value
Thank you very much for your reply. I will look further into the code.

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.418 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.