diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-22 22:25:34 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-22 22:25:34 -0500 |
| commit | afde9fd65fd6221b47504cc2c32d7f80c8654aa4 (patch) | |
| tree | a462ee46b093961d49381f7fae478c7afe876660 /StoneIsland/www/js/lib/auth/SignupView.js | |
| parent | fa9d1c62c8cc4b39caee69b1ba31401f0d4aac66 (diff) | |
ability to preload data
Diffstat (limited to 'StoneIsland/www/js/lib/auth/SignupView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/auth/SignupView.js | 16 |
1 files changed, 16 insertions, 0 deletions
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) }, |
