summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/android/assets/www/js/lib/account
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-03-23 17:09:48 +0100
committerJules Laplace <jules@okfoc.us>2017-03-23 17:09:48 +0100
commit3696f587f46a6d596bc8c0e9891566edbaf0ca63 (patch)
tree41f2db8966f2ff10cd467d1e66ce2c0ba5de52af /StoneIsland/platforms/android/assets/www/js/lib/account
parentc23ff34eeef700532e22f6d3f573e54dfd48b5a9 (diff)
android
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/account')
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/account/PaymentView.js2
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/account/ProfileView.js14
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js2
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/account/ShippingView.js2
4 files changed, 16 insertions, 4 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/PaymentView.js b/StoneIsland/platforms/android/assets/www/js/lib/account/PaymentView.js
index f773c05b..796ea188 100755
--- a/StoneIsland/platforms/android/assets/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/platforms/android/assets/www/js/lib/account/PaymentView.js
@@ -25,7 +25,7 @@ var PaymentView = FormView.extend({
},
initialize: function(){
- this.$form = this.$("form")
+ this.$form = this.$(".form")
this.$msg = this.$(".msg")
this.address = new AddressView ({ parent: this, checkPhone: false })
this.cc = new CreditCardView ({ parent: this })
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){
},
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js b/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
index f6eae13c..90ace549 100755
--- a/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
+++ b/StoneIsland/platforms/android/assets/www/js/lib/account/SettingsView.js
@@ -8,7 +8,7 @@ var SettingsView = FormView.extend({
},
initialize: function(){
- this.$form = this.$("form")
+ this.$form = this.$(".form")
this.$msg = this.$(".msg")
this.$store = this.$("[name=store]")
this.$hub = this.$("[name=hub]")
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/ShippingView.js b/StoneIsland/platforms/android/assets/www/js/lib/account/ShippingView.js
index 71cd9eef..67a1cfec 100755
--- a/StoneIsland/platforms/android/assets/www/js/lib/account/ShippingView.js
+++ b/StoneIsland/platforms/android/assets/www/js/lib/account/ShippingView.js
@@ -24,7 +24,7 @@ var ShippingView = FormView.extend({
},
initialize: function(){
- this.$form = this.$("form")
+ this.$form = this.$(".form")
this.$msg = this.$(".msg")
this.address = new AddressView ({ parent: this })
this.scroller = new IScroll('#shipping', app.iscroll_options)