summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/auth/SignupView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-01 06:39:46 -0500
committerJules Laplace <jules@okfoc.us>2015-12-01 06:39:46 -0500
commit1dfdbf6d09c6b1b80011b98436daa010f10a7be3 (patch)
tree44be4184ea36f3a92e2cff99420a15cbb06d993a /StoneIsland/www/js/lib/auth/SignupView.js
parent44ba111c40ce50f8634a7e9bb4316315274218cb (diff)
error / thanks styling
Diffstat (limited to 'StoneIsland/www/js/lib/auth/SignupView.js')
-rw-r--r--StoneIsland/www/js/lib/auth/SignupView.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js
index a78af233..bba959bd 100644
--- a/StoneIsland/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/www/js/lib/auth/SignupView.js
@@ -49,6 +49,7 @@ var SignupView = FormView.extend({
"Surname": "Please enter your last name.",
"Email": "Please enter a valid email address.",
"ConfirmEmail": "Please enter a valid email address.",
+ "BirthDay": "Please enter your birthday.",
"Password": "Please enter your password.",
"Password2": "Please enter your password again.",
"DataProfiling": "You must agree to data profiling.",
@@ -99,7 +100,13 @@ var SignupView = FormView.extend({
},
error: function(data){
- console.log('error', data)
+ try {
+ data = JSON.parse(data.responseText)
+ app.signup.show_errors([[ 'Name', data['Error']['Description'] ]])
+ }
+ catch (e) {
+ app.signup.show_errors([[ 'Name', "There was an unknown error." ]])
+ }
},
cancel: function(){