From ce2d1c701625a08f2b42a81cbac8a7566f8d9e2e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 20 Nov 2015 13:03:54 -0500 Subject: privacy policy link on signup --- StoneIsland/www/css/account.css | 4 +++- StoneIsland/www/index.html | 9 ++++++--- StoneIsland/www/js/lib/auth/SignupView.js | 11 +++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) (limited to 'StoneIsland/www') diff --git a/StoneIsland/www/css/account.css b/StoneIsland/www/css/account.css index 24b00cf0..81ca44c2 100644 --- a/StoneIsland/www/css/account.css +++ b/StoneIsland/www/css/account.css @@ -322,5 +322,7 @@ input.switch:checked + label:after { opacity: 1; } - +.privacy-msg { + text-align: center; +} diff --git a/StoneIsland/www/index.html b/StoneIsland/www/index.html index cb14beee..80eb9490 100644 --- a/StoneIsland/www/index.html +++ b/StoneIsland/www/index.html @@ -320,7 +320,7 @@
- +
- +
+
+ Consult our PRIVACY POLICY for further information. +
@@ -367,7 +370,7 @@ Receive Stone Island Newsletter
- +
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 092bf297..6ca1ccba 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -5,6 +5,7 @@ var SignupView = FormView.extend({ action: sdk.account.signup, events: { + "click .privacy-msg": "privacy_link", "submit form": "save", }, @@ -39,6 +40,16 @@ var SignupView = FormView.extend({ if (! data.DataProfiling) { data.DataProfiling = "false" } }, + privacy_link: function(){ + app.privacy.back = function(){ + app.router.go("account/signup") + } + app.privacy.hide = function(){ + app.privacy.back = app.privacy.hide = null + } + app.router.go("page/privacy") + }, + success: function(data){ app.account.logged_in() }, -- cgit v1.2.3-70-g09d2