summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/ProfileView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account/ProfileView.js')
-rw-r--r--StoneIsland/www/js/lib/account/ProfileView.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js
index ad0705d3..d05ef5cd 100644
--- a/StoneIsland/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/www/js/lib/account/ProfileView.js
@@ -31,9 +31,6 @@ var ProfileView = FormView.extend({
if (data.CurrentPassword && ! data.NewPassword) { errors.push([ "NewPassword", "Please enter your new password." ]) }
if (data.NewPassword && data.NewPassword.length < 7) { errors.push([ "CurrentPassword", "New password must be 7 characters or more." ]) }
if (data.Gender === "NONE") { errors.push([ "Gender", "Please supply your gender." ]) }
-
- data.BirthDay += "T00:00:00Z"
- data.YooxLetter = data.YooxLetter || "false"
},
finalize: function(data){
@@ -54,7 +51,6 @@ var ProfileView = FormView.extend({
}
var submissible_data = _.pick(data, "Name Surname BirthDay Gender YooxLetter".split(" "))
-
// submissible_data.idUser = auth.user_id
// submissible_data.AccessToken = auth.access_token
// submissible_data.Premium = "false"
@@ -63,6 +59,8 @@ var ProfileView = FormView.extend({
// submissible_data.FuriganaName = ""
// submissible_data.FuriganaSurname = ""
// submissible_data.UserPromocode = ""
+ submissible_data.BirthDay += "T00:00:00Z"
+ submissible_data.YooxLetter = data.YooxLetter || "false"
submissible_data.DataProfiling = "true"
return submissible_data