diff --git a/scripts/system/html/css/colpick.css b/scripts/system/html/css/colpick.css
index 98417a5e9a..fc50c4b3fb 100644
--- a/scripts/system/html/css/colpick.css
+++ b/scripts/system/html/css/colpick.css
@@ -279,7 +279,7 @@ colpick Color Picker / colpick.com
}
/*full layout with no submit button*/
-.colpick_full_ns .colpick_submit, .colpick_full_ns .colpick_current_color{
+.colpick_full_ns .colpick_submit {
display:none;
}
.colpick_full_ns .colpick_new_color {
@@ -320,11 +320,11 @@ colpick Color Picker / colpick.com
}
/*rgbhex layout, no submit button*/
-.colpick_rgbhex_ns .colpick_submit, .colpick_rgbhex_ns .colpick_current_color{
+.colpick_rgbhex_ns .colpick_submit {
display:none;
}
.colpick_rgbhex_ns .colpick_new_color{
- width:68px;
+ width:34px;
border: 1px solid #8f8f8f;
}
.colpick_rgbhex_ns .colpick_rgb_r {
@@ -379,7 +379,7 @@ colpick Color Picker / colpick.com
}
/*hex layout, no submit button*/
-.colpick_hex_ns .colpick_submit, .colpick_hex_ns .colpick_current_color {
+.colpick_hex_ns .colpick_submit {
display:none;
}
.colpick_hex_ns .colpick_hex_field {
diff --git a/scripts/system/html/js/colpick.js b/scripts/system/html/js/colpick.js
index f808262e9e..99054c6103 100644
--- a/scripts/system/html/js/colpick.js
+++ b/scripts/system/html/js/colpick.js
@@ -302,6 +302,9 @@ For usage and examples: colpick.com/plugin
setSelector(col, cal.get(0));
setHue(col, cal.get(0));
setNewColor(col, cal.get(0));
+ // If the user triggered this behavior, then any prior color change should be negated.
+ cal.data('colpick').onChange.apply(cal.parent(), [col, hsbToHex(col),
+ hsbToRgb(col), cal.data('colpick').el, 0]);
};
return {
init: function (opt) {