Convert Hexadecimal to headTags
This commit is contained in:
parent
3368e72246
commit
61e2f4eb2e
1 changed files with 13 additions and 1 deletions
|
|
@ -110,6 +110,19 @@ sub getValue {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 headTags ( )
|
||||||
|
|
||||||
|
A class method that returns a boolean indicating whether this control is compatible with the DynamicField control.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub headTags {
|
||||||
|
my $self = shift;
|
||||||
|
$self->session->style->setScript($self->session->url->extras('inputCheck.js'),{ type=>'text/javascript' });
|
||||||
|
}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 isDynamicCompatible ( )
|
=head2 isDynamicCompatible ( )
|
||||||
|
|
||||||
A class method that returns a boolean indicating whether this control is compatible with the DynamicField control.
|
A class method that returns a boolean indicating whether this control is compatible with the DynamicField control.
|
||||||
|
|
@ -130,7 +143,6 @@ Renders an integer field.
|
||||||
|
|
||||||
sub toHtml {
|
sub toHtml {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->session->style->setScript($self->session->url->extras('inputCheck.js'));
|
|
||||||
$self->set("extras", $self->get('extras') . ' onkeyup="doInputCheck(document.getElementById(\''.$self->get("id").'\'),\'0123456789abcdef\')"');
|
$self->set("extras", $self->get('extras') . ' onkeyup="doInputCheck(document.getElementById(\''.$self->get("id").'\'),\'0123456789abcdef\')"');
|
||||||
return $self->SUPER::toHtml;
|
return $self->SUPER::toHtml;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue