mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #349 from halkyon/emailfield_type
ENHANCEMENT use type="email" for EmailField
This commit is contained in:
commit
8f4957ae95
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user