Closed (fixed)
Project:
Jquery Colorpicker
Version:
7.x-1.0-beta3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 17:14 UTC
Updated:
2 Aug 2012 at 16:01 UTC
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
Comment #1
labor b commentedIn 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;')));Comment #2
plopescThanks for your point laborb!
I've committed a first approach based on your code.
I will work on mayor improvements ASAP.
Regards
Comment #3
Robin Millette commentedBump. Can this issue be flagges as "fixed"?
Comment #4
plopescYeah we can mark it fixed for now.
Maybe the behavior could be improved.
Comments are welcomed.
Thanks