diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/cart')
4 files changed, 7 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartConfirm.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartConfirm.js index b7eb8828..e1bfb114 100755 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartConfirm.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartConfirm.js @@ -32,6 +32,7 @@ var CartConfirm = FormView.extend({ window.location.hash = "#/cart/confirm" this.deferScrollToTop() + app.view = this app.curtain.show("loading") promise(sdk.cart.get_status).then( this.populate.bind(this) ) }, diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js index ab454246..a19e69a5 100755 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js @@ -44,6 +44,7 @@ var CartPayment = FormView.extend({ app.footer.show("CONFIRM >") window.location.hash = "#/cart/payment" + app.view = this this.populate() this.deferScrollToTop() }, @@ -138,7 +139,9 @@ var CartPayment = FormView.extend({ this.success() }.bind(this)).error(function(data){ app.curtain.hide("loading") + console.log("card payment error") console.log(data) + app.cart.payment.show_errors([["","There was a problem with your credit card."]]) }.bind(this)) return @@ -173,6 +176,7 @@ var CartPayment = FormView.extend({ }, error: function(data){ + console.log("card payment error") console.log(data) app.cart.payment.show_errors([["Number","There was a problem with your credit card."]]) }, @@ -181,5 +185,4 @@ var CartPayment = FormView.extend({ app.router.go('cart/shipping') }, - })
\ No newline at end of file diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartShipping.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartShipping.js index 1f60307e..fd227324 100755 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartShipping.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartShipping.js @@ -30,6 +30,7 @@ var CartShipping = FormView.extend({ app.cart.el.className = "shipping" app.footer.show("PAYMENT >") window.location.hash = "#/cart/shipping" + app.view = this this.populate() this.deferScrollToTop() }, diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartSummary.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartSummary.js index c3156265..9b5da7b7 100755 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartSummary.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartSummary.js @@ -28,6 +28,7 @@ var CartSummary = ScrollableView.extend({ document.body.className = "cart" app.cart.el.className = "summary" window.location.hash = "#/cart/summary" + app.view = this if (auth.has_cart()) { this.load() } |
