summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartConfirm.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-01 06:39:46 -0500
committerJules Laplace <jules@okfoc.us>2015-12-01 06:39:46 -0500
commit1dfdbf6d09c6b1b80011b98436daa010f10a7be3 (patch)
tree44be4184ea36f3a92e2cff99420a15cbb06d993a /StoneIsland/www/js/lib/cart/CartConfirm.js
parent44ba111c40ce50f8634a7e9bb4316315274218cb (diff)
error / thanks styling
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartConfirm.js')
-rw-r--r--StoneIsland/www/js/lib/cart/CartConfirm.js8
1 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 27e249cf..f6c7f1f5 100644
--- a/StoneIsland/www/js/lib/cart/CartConfirm.js
+++ b/StoneIsland/www/js/lib/cart/CartConfirm.js
@@ -147,7 +147,7 @@ var CartConfirm = FormView.extend({
case 440: // genericapierror (credit card error!)
case 441: // genericapierror (credit card empty)
app.router.go('cart/payment')
- app.cart.payment.show_errors(["Number","There was a problem with your credit card."])
+ app.cart.payment.show_errors([["Number","There was a problem with your credit card."]])
break
}
}.bind(this))
@@ -156,14 +156,14 @@ var CartConfirm = FormView.extend({
finalization_error: function(data){
if (data['Error']['Description'].match(/receiver validation fails/)) {
app.router.go('cart/shipping')
- app.cart.payment.show_errors(["Number","There was a problem with your credit card."])
+ app.cart.payment.show_errors([["Number","There was a problem with your credit card."]])
}
else if (data['Error']['Description'].match(/cart cannot be empty/)) {
app.router.go('cart/summary')
}
else if (data['Error']['Description'].match(/Item has been removed/)) {
- app.router.go('cart/thanks')
- app.cart.thanks.show_error("We're sorry, but one or more items was out of stock. Please check your cart and try again.")
+ app.router.go('cart/error')
+ app.cart.error.show_error("We're sorry, but one or more items was out of stock. Please check your cart and try again.")
}
},