diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-03-08 19:43:41 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-03-08 19:43:41 +0000 |
| commit | 5a0b2aaf9877019e1dfcff304a0469857cfe3171 (patch) | |
| tree | 6918087b2e971683449353ac9ec513415f2584d1 /js/site.js | |
| parent | 84cfb2ce8ab11dc36152948e71108dbfafd214c4 (diff) | |
Change field name age to birthday in reg. form, which was causing JS validation to break.
Diffstat (limited to 'js/site.js')
| -rw-r--r-- | js/site.js | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -142,16 +142,9 @@ function validateRegisterUser(formId) { return false; } - if ( empty(myForm.age.value) ) { - alert("You must specify an age (even if it's not real)."); - myForm.age.focus(); + if ( empty(myForm.birthday.value) ) { + alert("You must specify a birthday (even if it's not real)."); return false; - } else { - if ( isNaN(myForm.age.value) ) { - alert("Your age must be a number."); - myForm.age.focus(); - return false; - } } if ( myForm.terms.checked != true ) { |
