summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-09-03 18:14:43 +0200
committerJules Laplace <julescarbon@gmail.com>2019-09-03 18:14:43 +0200
commit0261ee59c47c4a940cd41b526bd891a97c02a6dd (patch)
treef67ee85390c75801de2312b94a624b13326dbae9 /StoneIsland/www/js/lib/cart
parent6f2af841c17ff4ed28d40121114825a40e8cf6fa (diff)
ditching iscroll
Diffstat (limited to 'StoneIsland/www/js/lib/cart')
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartConfirm.js2
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartPayment.js2
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartShipping.js2
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartSummary.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartConfirm.js b/StoneIsland/www/js/lib/cart/CartConfirm.js
index 031e3359..6909dcc3 100755
--- a/StoneIsland/www/js/lib/cart/CartConfirm.js
+++ b/StoneIsland/www/js/lib/cart/CartConfirm.js
@@ -22,7 +22,7 @@ var CartConfirm = FormView.extend({
this.$payment_method = this.$(".payment_method")
this.$payment_address = this.$(".payment_address")
- this.scroller = new IScroll('#cart_confirm', app.iscroll_options)
+ this.scroller = ScrollFactory('#cart_confirm', app.iscroll_options)
},
show: function(){
diff --git a/StoneIsland/www/js/lib/cart/CartPayment.js b/StoneIsland/www/js/lib/cart/CartPayment.js
index 3a9e6412..40d08d9e 100755
--- a/StoneIsland/www/js/lib/cart/CartPayment.js
+++ b/StoneIsland/www/js/lib/cart/CartPayment.js
@@ -34,7 +34,7 @@ var CartPayment = FormView.extend({
this.address = new AddressView ({ parent: this, checkPhone: false })
this.cc = new CreditCardView ({ parent: this })
- this.scroller = new IScroll('#cart_payment', app.iscroll_options)
+ this.scroller = ScrollFactory('#cart_payment', app.iscroll_options)
this.scroller.on('scrollStart', function(){
if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'SELECT') {
document.activeElement.blur()
diff --git a/StoneIsland/www/js/lib/cart/CartShipping.js b/StoneIsland/www/js/lib/cart/CartShipping.js
index ef8f94b7..b5d6647b 100755
--- a/StoneIsland/www/js/lib/cart/CartShipping.js
+++ b/StoneIsland/www/js/lib/cart/CartShipping.js
@@ -21,7 +21,7 @@ var CartShipping = FormView.extend({
this.$address_form = this.$(".address")
this.$msg = this.$(".msg")
this.address = new AddressView ({ parent: this })
- this.scroller = new IScroll('#cart_shipping', app.iscroll_options)
+ this.scroller = ScrollFactory('#cart_shipping', app.iscroll_options)
this.address.disabled = true
},
diff --git a/StoneIsland/www/js/lib/cart/CartSummary.js b/StoneIsland/www/js/lib/cart/CartSummary.js
index bf150791..51aa35ef 100755
--- a/StoneIsland/www/js/lib/cart/CartSummary.js
+++ b/StoneIsland/www/js/lib/cart/CartSummary.js
@@ -15,7 +15,7 @@ var CartSummary = ScrollableView.extend({
this.$loader = this.$(".loader")
this.$cart_body = this.$(".cart_body")
this.$cart_empty = this.$(".cart_empty")
- this.scroller = new IScroll('#cart_summary', app.iscroll_options)
+ this.scroller = ScrollFactory('#cart_summary', app.iscroll_options)
this.$rows = this.$(".rows")
this.$subtotal = this.$(".subtotal")