Merge pull request #349 from halkyon/emailfield_type

ENHANCEMENT use type="email" for EmailField
This commit is contained in:
Will Rossiter 2012-04-18 23:14:10 -07:00
commit 8f4957ae95

View File

@ -10,6 +10,15 @@ class EmailField extends TextField {
return 'email text';
}
function getAttributes() {
return array_merge(
parent::getAttributes(),
array(
'type' => 'email'
)
);
}
/**
* Validates for RFC 2822 compliant email adresses.
*