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')
-rwxr-xr-xStoneIsland/www/js/lib/account/ProfileView.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js
index 98dba019..52ef8056 100755
--- a/StoneIsland/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/www/js/lib/account/ProfileView.js
@@ -3,6 +3,7 @@ var ProfileView = FormView.extend({
el: "#profile",
events: {
+ "click .privacy-msg": "privacy_link",
},
action: sdk.account.update,
@@ -90,6 +91,17 @@ var ProfileView = FormView.extend({
return submissible_data
},
+ privacy_link: function(){
+ // rewrite app.privacy instance temporarily
+ app.privacy.back = function(){
+ app.router.go("account/profile")
+ }
+ app.privacy.hide = function(){
+ app.privacy.back = app.privacy.hide = null
+ }
+ app.router.go("page/privacy")
+ },
+
success: function(data){
},