First of all, great module. I stumbled accross a small problem.
When using jquery colorpicker with cardinality set to infinite a remove button is missing.
So it isn't possible to remove colors.

Comments

labor b’s picture

In case someone needs a quick and dirty fix, add the following code to "theme_jquery_colorpicker":
$output.= l(t('remove'), '#', array('html' => true, 'attributes' => array('onclick' => 'jQuery(\'#'.$element['#id'].'\').find(\'input\').val(\'\'); jQuery(\'#'.$element['#id'].'\').parent().parent().parent().hide(); return false;')));

plopesc’s picture

Status: Active » Reviewed & tested by the community

Thanks for your point laborb!

I've committed a first approach based on your code.
I will work on mayor improvements ASAP.
Regards

Robin Millette’s picture

Bump. Can this issue be flagges as "fixed"?

plopesc’s picture

Status: Reviewed & tested by the community » Fixed

Yeah we can mark it fixed for now.

Maybe the behavior could be improved.
Comments are welcomed.
Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.