made some color picker changes

This commit is contained in:
JT Smith 2007-07-16 15:49:32 +00:00
parent ab0fa08895
commit fccd2d0a94

View file

@ -103,8 +103,8 @@ sub toHtml {
$style->setScript($url->extras('/colorpicker/colorpicker.js'),{ type=>'text/javascript' });
my $id = $self->get("id");
my $value = $self->get("value");
return q| <a href="javascript:webguiColorPicker.display('|. $id. q|');" id="|. $id.q|_swatch"
style="width: 20px; height: 20px; background-color: |.$value.q|; border: 1px solid black; float: left;"></a>
return q| <a href="javascript:WebguiColorPicker.display('|. $id. q|');" id="|. $id.q|_swatch"
class="colorPickerFormSwatch" style="background-color: |.$value.q|;"></a>
<input onchange="document.getElementById('|.$id.q|_swatch').style.backgroundColor=this.value;"
maxlength="7" name="|.$self->get("name").q|" type="text" size="8" value="|.$value.q|" id="|.$id.q|" />|;