diff options
Diffstat (limited to 'StoneIsland/www/js/lib')
| -rw-r--r-- | StoneIsland/www/js/lib/account/ProfileView.js | 6 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/ShippingView.js | 2 |
2 files changed, 3 insertions, 5 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 diff --git a/StoneIsland/www/js/lib/account/ShippingView.js b/StoneIsland/www/js/lib/account/ShippingView.js index f9089875..65a55fdc 100644 --- a/StoneIsland/www/js/lib/account/ShippingView.js +++ b/StoneIsland/www/js/lib/account/ShippingView.js @@ -34,7 +34,7 @@ var ShippingView = FormView.extend({ document.body.className = "shipping" }, - save: function(){ + finalize: function(){ }, })
\ No newline at end of file |
