summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www')
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js1
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js1
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js2
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/SettingsView.js1
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/ShippingView.js1
5 files changed, 5 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js b/StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js
index 49901daa..a1b83767 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js
@@ -34,6 +34,7 @@ var OrdersView = ScrollableView.extend({
app.header.set_back(false)
app.footer.hide()
document.body.className = "orders"
+ this.deferScrollToTop()
this.el.className = ""
if (this.loaded) {
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js b/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
index 9410fa42..03dc8cbf 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
@@ -36,6 +36,7 @@ var PaymentView = FormView.extend({
if (! auth.logged_in()) { return app.router.go("intro") }
app.footer.show("SAVE", "CANCEL")
document.body.className = "payment"
+ this.deferScrollToTop()
// this.preload()
},
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js b/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js
index da25fefc..ed2f3536 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/ProfileView.js
@@ -17,8 +17,8 @@ var ProfileView = FormView.extend({
if (! auth.logged_in()) { return app.router.go("intro") }
app.footer.show("SAVE", "CANCEL")
document.body.className = "profile"
-
this.preload(auth.user)
+ this.deferScrollToTop()
},
validate_presence: {
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/SettingsView.js b/StoneIsland/platforms/ios/www/js/lib/account/SettingsView.js
index 81b8b5cc..7f96bb88 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/SettingsView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/SettingsView.js
@@ -15,6 +15,7 @@ var SettingsView = FormView.extend({
if (! auth.logged_in()) { return app.router.go("intro") }
app.footer.show("SAVE", "CANCEL")
document.body.className = "settings"
+ this.deferScrollToTop()
},
save: function(){
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/ShippingView.js b/StoneIsland/platforms/ios/www/js/lib/account/ShippingView.js
index b8b260ab..39baf2aa 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/ShippingView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/ShippingView.js
@@ -35,6 +35,7 @@ var ShippingView = FormView.extend({
// this.preload( this.data || this.test_data )
app.footer.show("SAVE", "CANCEL")
document.body.className = "shipping"
+ this.deferScrollToTop()
},
populate: function(data){