- Priority: 0
- Status: Closed
- Theme: Alysum
- Assigned To: No-one
- Private: No
- Open Date: 09.12.16, 15:53
- Opened by: Alex
- Closed by: Marek
- Closed on: 09.06.17, 23:25
- Reason: Closed
- Comment: Glad to help!
Ticket #10091 - al4.6 newsletter message "Wrong email address"
Fix:
1) in the end of the file /modules/pk_newsletter/views/templates/hook/pk_newsletter.tpl
delete this code
function isEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{ 2,4 })+$/; return regex.test(email); }
2) Add to the end of the file /themes/alysum/js/global.js the code
function isEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email); }
Comments
No comments yet