From afde9fd65fd6221b47504cc2c32d7f80c8654aa4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 22 Nov 2015 22:25:34 -0500 Subject: ability to preload data --- StoneIsland/www/js/lib/auth/SignupView.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'StoneIsland/www/js/lib/auth/SignupView.js') diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 0fccc06d..3293b3aa 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -5,6 +5,18 @@ var SignupView = FormView.extend({ action: sdk.account.signup, last_data: null, + test_data: { + "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", + "Password": "TestPassword", + "Password2": "TestPassword", + "Gender": "U", + "Name": "TestName", + "Surname": "TestSurname", + "Birthday": "1978-11-12", + "DataProfiling": true, + "DataProfiling2": true, + }, + events: { "click .privacy-msg": "privacy_link", "submit form": "save", @@ -25,6 +37,8 @@ var SignupView = FormView.extend({ this.$form.get(0).reset() this.$msg.html(msg) document.body.className = "signup" + + this.preload() }, validate_presence: { @@ -49,6 +63,8 @@ var SignupView = FormView.extend({ delete data.DataProfiling2 delete data.ConfirmEmail + data.Birthday += "T00:00:00Z" + this.last_data = data console.log(data) }, -- cgit v1.2.3-70-g09d2