diff options
Diffstat (limited to 'StoneIsland/www/js/lib')
| -rw-r--r-- | StoneIsland/www/js/lib/account/LoginView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/PaymentView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/ProfileView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/SettingsView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/ShippingView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/SignupView.js | 1 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartConfirm.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartPayment.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartShipping.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartSummary.js | 4 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartView.js | 6 |
11 files changed, 18 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js index 329cf984..8c875ae8 100644 --- a/StoneIsland/www/js/lib/account/LoginView.js +++ b/StoneIsland/www/js/lib/account/LoginView.js @@ -12,6 +12,7 @@ var LoginView = FormView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#login', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js index e8dd1dc2..4d6ccce5 100644 --- a/StoneIsland/www/js/lib/account/PaymentView.js +++ b/StoneIsland/www/js/lib/account/PaymentView.js @@ -10,6 +10,7 @@ var PaymentView = FormView.extend({ this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) this.cc = new CreditCardView ({ parent: this }) + this.scroller = new IScroll('#payment', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js index 342e831a..6d9a44a3 100644 --- a/StoneIsland/www/js/lib/account/ProfileView.js +++ b/StoneIsland/www/js/lib/account/ProfileView.js @@ -8,6 +8,7 @@ var ProfileView = FormView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#profile', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/SettingsView.js b/StoneIsland/www/js/lib/account/SettingsView.js index 37274b24..ba871543 100644 --- a/StoneIsland/www/js/lib/account/SettingsView.js +++ b/StoneIsland/www/js/lib/account/SettingsView.js @@ -8,6 +8,7 @@ var SettingsView = FormView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#settings', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/ShippingView.js b/StoneIsland/www/js/lib/account/ShippingView.js index e7f44949..bc4d24ef 100644 --- a/StoneIsland/www/js/lib/account/ShippingView.js +++ b/StoneIsland/www/js/lib/account/ShippingView.js @@ -9,6 +9,7 @@ var ShippingView = FormView.extend({ this.$form = this.$("form") this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) + this.scroller = new IScroll('#shipping', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/account/SignupView.js b/StoneIsland/www/js/lib/account/SignupView.js index 62a8f498..04600517 100644 --- a/StoneIsland/www/js/lib/account/SignupView.js +++ b/StoneIsland/www/js/lib/account/SignupView.js @@ -11,6 +11,7 @@ var SignupView = FormView.extend({ initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") + this.scroller = new IScroll('#signup', app.iscroll_options) }, show: function(){ diff --git a/StoneIsland/www/js/lib/cart/CartConfirm.js b/StoneIsland/www/js/lib/cart/CartConfirm.js index 0ce94f22..659d36e6 100644 --- a/StoneIsland/www/js/lib/cart/CartConfirm.js +++ b/StoneIsland/www/js/lib/cart/CartConfirm.js @@ -6,12 +6,14 @@ var CartConfirm = View.extend({ }, initialize: function(){ + this.scroller = new IScroll('#cart_confirm', app.iscroll_options) }, show: function(){ document.body.className = "cart" app.cart.el.className = "confirm" app.footer.show("PLACE ORDER", "CANCEL") + this.deferScrollToTop() }, populate: function(){ diff --git a/StoneIsland/www/js/lib/cart/CartPayment.js b/StoneIsland/www/js/lib/cart/CartPayment.js index f5dfb6ed..50fbef9c 100644 --- a/StoneIsland/www/js/lib/cart/CartPayment.js +++ b/StoneIsland/www/js/lib/cart/CartPayment.js @@ -10,12 +10,14 @@ var CartPayment = View.extend({ this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) this.cc = new CreditCardView ({ parent: this }) + this.scroller = new IScroll('#cart_payment', app.iscroll_options) }, show: function(){ document.body.className = "cart" app.cart.el.className = "payment" app.footer.show("CONFIRM >", "CANCEL") + this.deferScrollToTop() }, save: function(){ diff --git a/StoneIsland/www/js/lib/cart/CartShipping.js b/StoneIsland/www/js/lib/cart/CartShipping.js index b819ed0a..2c7bae4a 100644 --- a/StoneIsland/www/js/lib/cart/CartShipping.js +++ b/StoneIsland/www/js/lib/cart/CartShipping.js @@ -9,12 +9,14 @@ var CartShipping = View.extend({ this.$form = this.$("form") this.$msg = this.$(".msg") this.address = new AddressView ({ parent: this }) + this.scroller = new IScroll('#cart_shipping', app.iscroll_options) }, show: function(){ document.body.className = "cart" app.cart.el.className = "shipping" app.footer.show("PAYMENT >", "CANCEL") + this.deferScrollToTop() }, save: function(){ diff --git a/StoneIsland/www/js/lib/cart/CartSummary.js b/StoneIsland/www/js/lib/cart/CartSummary.js index d91b801f..800ac3a6 100644 --- a/StoneIsland/www/js/lib/cart/CartSummary.js +++ b/StoneIsland/www/js/lib/cart/CartSummary.js @@ -1,4 +1,4 @@ -var CartSummary = View.extend({ +var CartSummary = ScrollableView.extend({ el: "#summary", @@ -6,12 +6,14 @@ var CartSummary = View.extend({ }, initialize: function(){ + this.scroller = new IScroll('#summary', app.iscroll_options) }, show: function(){ document.body.className = "cart" app.cart.el.className = "summary" app.footer.show("SHIPPING >", "CANCEL") + this.deferScrollToTop() }, populate: function(){ diff --git a/StoneIsland/www/js/lib/cart/CartView.js b/StoneIsland/www/js/lib/cart/CartView.js index 7744ad9d..43dc7dd4 100644 --- a/StoneIsland/www/js/lib/cart/CartView.js +++ b/StoneIsland/www/js/lib/cart/CartView.js @@ -22,15 +22,15 @@ var CartView = View.extend({ }, show_summary: function(){ - this.el.className = "summary" + this.summary.show() }, show_shipping: function(){ - this.el.className = "shipping" + this.shipping.show() }, show_payment: function(){ - this.el.className = "payment" + this.payment.show() }, })
\ No newline at end of file |
