slitaz-pizza rev 95
lib/functions.js: @ and . are valid email characters (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 14 09:09:14 2013 +0100 (2013-03-14) |
parents | 5fc8986fd0a0 |
children | 336b430315f8 |
files | web/lib/functions.js |
line diff
1.1 --- a/web/lib/functions.js Thu Mar 14 08:58:59 2013 +0100 1.2 +++ b/web/lib/functions.js Thu Mar 14 09:09:14 2013 +0100 1.3 @@ -1,10 +1,9 @@ 1.4 // SliTaz Pizza Javascript functions. 1.5 // 1.6 1.7 -function charactersOK(field, name) { 1.8 - var str = "`!#$%^&*()+=[]\\\';,/{}|\":<>?"; 1.9 +function charactersOK(field, name, str) { 1.10 if(document.forms["pizza"][field].value == "") { 1.11 - alert("Please enter"+name); 1.12 + alert("Please enter the "+name); 1.13 document.forms["pizza"][field].focus(); 1.14 return false; 1.15 }