lauren / pick-a-color

an easy-to-use jQuery color picker for Twitter Bootstrap
http://lauren.github.com/pick-a-color/
MIT License
269 stars 89 forks source link

autosave as an option #80

Open charleslaw opened 8 years ago

charleslaw commented 8 years ago

When using the advanced tab, autosaving the color without having to hit select would be a good option to have.

charleslaw commented 8 years ago

I acheived this in a local copy by adding a line (menu.find(".color-preview").click();) here:

https://github.com/lauren/pick-a-color/blob/master/src/js/pick-a-color.js#L339

Probably not the cleanest, but it did work - also it didn't use settings

EDIT: More specific selector in case multiple color pickers are on 1 page