diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js | 12 | ||||
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/view/Serializable.js | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js b/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js index 98dba019..52ef8056 100755 --- a/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js +++ b/StoneIsland/platforms/ios/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){ }, diff --git a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js index 8d25daf4..fa4eba02 100755 --- a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js +++ b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js @@ -128,6 +128,7 @@ var SerializableView = View.extend({ } else { this.hide_errors() + cordova.plugins.Keyboard.close() } var finalized_data = this.finalize(valid.data) |
