summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-21 22:01:50 -0800
committerJules Laplace <jules@okfoc.us>2015-12-21 22:01:50 -0800
commitcaadf9bd2b05ca43cd51b0f880761c1330ef3e19 (patch)
tree207f354e43c3724033c0312d8b31784f8cdb49ee /StoneIsland/www/js
parentb6e73d3c1af0fc929916c9e4d63d125a96cbb996 (diff)
rm dataprofiling2 checkbox
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/account/ProfileView.js1
-rwxr-xr-xStoneIsland/www/js/lib/auth/SignupView.js3
-rwxr-xr-xStoneIsland/www/js/lib/blogs/StoryView.js2
3 files changed, 1 insertions, 5 deletions
diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js
index 2b608cb4..d36f7f38 100755
--- a/StoneIsland/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/www/js/lib/account/ProfileView.js
@@ -17,7 +17,6 @@ var ProfileView = FormView.extend({
if (! auth.logged_in()) { return app.router.go("intro") }
app.footer.show("SAVE")
document.body.className = "profile"
- auth.user.DataProfiling2 = auth.user.DataProfiling
if (auth.user.BirthDay.match(/T/)) {
auth.user.BirthDay = auth.user.BirthDay.split("T")[0]
}
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js
index 599f57c7..4645d4d9 100755
--- a/StoneIsland/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/www/js/lib/auth/SignupView.js
@@ -15,7 +15,6 @@ var SignupView = FormView.extend({
"Surname": "TestSurname",
"BirthDay": "1978-11-12",
"DataProfiling": true,
- "DataProfiling2": true,
},
*/
@@ -63,12 +62,10 @@ var SignupView = FormView.extend({
if (data.Email.toLowerCase() !== data.ConfirmEmail.toLowerCase()) { errors.push([ "ConfirmEmail", "Email addresses don't match." ]) }
// if (data.Gender === "NONE") { errors.push([ "Gender", "Please supply your gender." ]) }
if (data.DataProfiling !== "true") { errors.push([ "DataProfiling", "You must consent to use this service." ]) }
- if (data.DataProfiling2 !== "true") { errors.push([ "DataProfiling2", "You must consent to use this service." ]) }
data.YooxLetter = this.$("[name=YooxLetter]").prop("checked")
},
finalize: function(data){
- delete data.DataProfiling2
delete data.ConfirmEmail
data.Gender = "U"
diff --git a/StoneIsland/www/js/lib/blogs/StoryView.js b/StoneIsland/www/js/lib/blogs/StoryView.js
index c2a9f4b4..73b7b83b 100755
--- a/StoneIsland/www/js/lib/blogs/StoryView.js
+++ b/StoneIsland/www/js/lib/blogs/StoryView.js
@@ -26,7 +26,7 @@ var StoryView = ScrollableView.extend({
},
populate: function(data){
- if (this.loaded) {}
+ if (this.loaded) { return }
this.loaded = true
this.data = data
this.$loader.hide()