The captcha form control had it's built in styles removed in favor of two classes: "wg-captchaForm" and "wg-captchaImage"

This commit is contained in:
JT Smith 2009-11-06 10:11:13 -06:00
parent 804dbcfd26
commit 1304bf397a
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
7.8.5
- The captcha form control had it's built in styles removed in favor of two classes: "wg-captchaForm" and "wg-captchaImage"
7.8.4
- Fixed a compatibility problem between WRE and new Spectre code.

View file

@ -178,8 +178,9 @@ sub toHtml {
my ($filename, $challenge) = $storage->addFileFromCaptcha;
$self->set("size", 6);
$self->set("maxlength", 6);
$self->set("extras", 'class="wg-captchaForm"');
$self->session->scratch->set("captcha_".$self->get("name"), $challenge);
return $self->SUPER::toHtml.'<p style="display:inline;vertical-align:middle;"><img src="'.$storage->getUrl($filename).'" style="border-style:none;vertical-align:middle;" alt="captcha" /></p>';
return $self->SUPER::toHtml.'<img src="'.$storage->getUrl($filename).'" class="wg-captchaImage" alt="captcha" />';
}
=head2 getErrorMessage ( )