diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-03-23 17:09:48 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-03-23 17:09:48 +0100 |
| commit | 3696f587f46a6d596bc8c0e9891566edbaf0ca63 (patch) | |
| tree | 41f2db8966f2ff10cd467d1e66ce2c0ba5de52af /StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js | |
| parent | c23ff34eeef700532e22f6d3f573e54dfd48b5a9 (diff) | |
android
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js')
| -rwxr-xr-x | StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js b/StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js index df6bc865..52ef8056 100755 --- a/StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js +++ b/StoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js @@ -3,12 +3,13 @@ var ProfileView = FormView.extend({ el: "#profile", events: { + "click .privacy-msg": "privacy_link", }, action: sdk.account.update, initialize: function(){ - this.$form = this.$("form") + this.$form = this.$(".form") this.$msg = this.$(".msg") this.scroller = new IScroll('#profile', app.iscroll_options) }, @@ -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){ }, |
