From 1304bf397aa2dcbb7ca4273396a661086986ec67 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 6 Nov 2009 10:11:13 -0600 Subject: [PATCH] The captcha form control had it's built in styles removed in favor of two classes: "wg-captchaForm" and "wg-captchaImage" --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/Captcha.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1e2cbd114..ef51ab288 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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. diff --git a/lib/WebGUI/Form/Captcha.pm b/lib/WebGUI/Form/Captcha.pm index deb9832df..defd3ec50 100644 --- a/lib/WebGUI/Form/Captcha.pm +++ b/lib/WebGUI/Form/Captcha.pm @@ -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.'

captcha

'; + return $self->SUPER::toHtml.'captcha'; } =head2 getErrorMessage ( )