summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-04 02:07:08 -0500
committerJules Laplace <jules@okfoc.us>2015-12-04 02:07:08 -0500
commit6e140c73aaecad1fefc6f5e9c6dd3a3e834766f5 (patch)
treee585d17d76a8b3fa8a3c36c87d5c7b13e796b490 /StoneIsland/www/js/lib
parent1771546b50cf3892a545d7d692eb3743b14ffc69 (diff)
more scrolltotops
Diffstat (limited to 'StoneIsland/www/js/lib')
-rw-r--r--StoneIsland/www/js/lib/account/OrdersView.js1
-rw-r--r--StoneIsland/www/js/lib/account/PaymentView.js1
-rw-r--r--StoneIsland/www/js/lib/account/ProfileView.js2
-rw-r--r--StoneIsland/www/js/lib/account/SettingsView.js1
-rw-r--r--StoneIsland/www/js/lib/account/ShippingView.js1
5 files changed, 5 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/account/OrdersView.js b/StoneIsland/www/js/lib/account/OrdersView.js
index 49901daa..a1b83767 100644
--- a/StoneIsland/www/js/lib/account/OrdersView.js
+++ b/StoneIsland/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/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js
index 9410fa42..03dc8cbf 100644
--- a/StoneIsland/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/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/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js
index da25fefc..ed2f3536 100644
--- a/StoneIsland/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/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/www/js/lib/account/SettingsView.js b/StoneIsland/www/js/lib/account/SettingsView.js
index 81b8b5cc..7f96bb88 100644
--- a/StoneIsland/www/js/lib/account/SettingsView.js
+++ b/StoneIsland/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/www/js/lib/account/ShippingView.js b/StoneIsland/www/js/lib/account/ShippingView.js
index b8b260ab..39baf2aa 100644
--- a/StoneIsland/www/js/lib/account/ShippingView.js
+++ b/StoneIsland/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){