mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 08:30:15 +02:00
Use native HTML email validation instead of "jquery validate"
This commit is contained in:
parent
e72c00850b
commit
2c67ed9673
5 changed files with 7 additions and 11 deletions
|
@ -17,7 +17,3 @@ $.validator.setDefaults
|
|||
else
|
||||
error.insertAfter element
|
||||
return
|
||||
|
||||
jQuery.validator.addMethod 'lax_email', ((value, element) ->
|
||||
@optional(element) or (value.match(new RegExp("@", "g")) || []).length == 1
|
||||
), 'Please enter a valid email address.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue