summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-02-24 03:01:19 +0100
committerJules Laplace <jules@okfoc.us>2017-02-24 03:01:19 +0100
commitbbc63f8a7a9006a8dc4100dbd2515b29a9422a86 (patch)
treed89ea9038e0f21ab6f0e05e37efdf60e3174785c /StoneIsland/www/js
parentdb9d93526b951a7660925cd2e721ab2588e4ca45 (diff)
fix privacy policy options
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/account/ProfileView.js12
-rwxr-xr-xStoneIsland/www/js/lib/view/Serializable.js1
2 files changed, 13 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){
},
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index 8d25daf4..fa4eba02 100755
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/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)