Browse files

Merge pull request #349 from halkyon/emailfield_type

ENHANCEMENT use type="email" for EmailField
  • Loading branch information...
2 parents 5c420ba + 80facbd commit 8f4957ae95f544737659db808489b4008cb2a587 @wilr wilr committed Apr 18, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 forms/EmailField.php
View
9 forms/EmailField.php
@@ -10,6 +10,15 @@ function Type() {
return 'email text';
}
+ function getAttributes() {
+ return array_merge(
+ parent::getAttributes(),
+ array(
+ 'type' => 'email'
+ )
+ );
+ }
+
/**
* Validates for RFC 2822 compliant email adresses.
*

0 comments on commit 8f4957a

Please sign in to comment.