From aa93b03e1862e9f95570653d52b9d5858171d22f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Nov 2015 03:06:33 -0500 Subject: pull in form data --- StoneIsland/www/js/lib/account/SignupView.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'StoneIsland/www/js/lib/account/SignupView.js') diff --git a/StoneIsland/www/js/lib/account/SignupView.js b/StoneIsland/www/js/lib/account/SignupView.js index c6cd2930..14fb27a6 100644 --- a/StoneIsland/www/js/lib/account/SignupView.js +++ b/StoneIsland/www/js/lib/account/SignupView.js @@ -3,7 +3,7 @@ var SignupView = View.extend({ el: "#signup", events: { - "submit form": "submit", + "submit form": "save", }, initialize: function(){ @@ -17,12 +17,23 @@ var SignupView = View.extend({ document.body.className = "signup" }, - submit: function(e){ - e.preventDefault() + save: function(e){ + e && e.preventDefault() }, success: function(){ // change login in ui to logout or whatever }, +/* + var new_user_data = { + "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", + "Password": "TestPassword", + "Gender": "M", + "Name": "TestName", + "Surname": "TestSurname", + "DataProfiling": true, + } +*/ + }) \ No newline at end of file -- cgit v1.2.3-70-g09d2