Push out head tags for the custom color selector.

This commit is contained in:
Colin Kuskie 2015-03-10 14:05:18 -07:00
parent 6028535303
commit cc5f0a30ad
2 changed files with 2 additions and 0 deletions

View file

@ -131,6 +131,7 @@ sub toHtml {
my $id = $self->get("id");
my $value = $self->getOriginalValue;
my $name = $self->get("name");
$self->headTags;
return qq{<a href="javascript:YAHOO.WebGUI.Form.ColorPicker.display('$id', '${id}_swatch');" id="${id}_swatch" class="colorPickerFormSwatch" style="background-color: $value"></a>
<input onchange="YAHOO.util.Dom.setStyle('${id}_swatch', 'background-color', this.value)"
maxlength="7" name="$name" type="text" size="8" value="$value" id="$id" />};