summaryrefslogtreecommitdiff
path: root/js/site.js
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2008-03-08 19:43:41 +0000
committerNathan Kinkade <nath@nkinka.de>2008-03-08 19:43:41 +0000
commit5a0b2aaf9877019e1dfcff304a0469857cfe3171 (patch)
tree6918087b2e971683449353ac9ec513415f2584d1 /js/site.js
parent84cfb2ce8ab11dc36152948e71108dbfafd214c4 (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.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/js/site.js b/js/site.js
index 0865c76..9e4afd7 100644
--- a/js/site.js
+++ b/js/site.js
@@ -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 ) {