ian-cox / Kirby-Color-Picker

A simple color picker field for the Kirby CMS
MIT License
86 stars 13 forks source link

Color picker shows up on readonly field #9

Closed julien-gargot closed 8 years ago

julien-gargot commented 8 years ago

Hi,

The color picker should not show himself on click on fields with the readonly: true option.

color picker shows up on readonly field

ian-cox commented 8 years ago

I'm reading over everything now and will merge your fix, thanks!

julien-gargot commented 8 years ago

Thank to consider it! I tried to keep it very simple. I just add, in the color.php, the readonly attribute, and I hide the color picker with CSS. I also moved the Kirby CSS related to a new file, so it may be easier to keep up to date the CSS and JS from minicolor.