summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartError.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-01 05:34:35 -0500
committerJules Laplace <jules@okfoc.us>2015-12-01 05:34:35 -0500
commitb1116e3d472907ccc3c8df23a11aa6eca5dc5227 (patch)
tree240ee07e9e00d4f8ac22ee9b7c2c4b330ec00931 /StoneIsland/www/js/lib/cart/CartError.js
parent6415f506034262dd7151be2e35e1e1c1e97f4dfa (diff)
prepopulate cc info better
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartError.js')
-rw-r--r--StoneIsland/www/js/lib/cart/CartError.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartError.js b/StoneIsland/www/js/lib/cart/CartError.js
new file mode 100644
index 00000000..f2edae35
--- /dev/null
+++ b/StoneIsland/www/js/lib/cart/CartError.js
@@ -0,0 +1,28 @@
+var CartError = View.extend({
+
+ el: "#cart_error",
+
+ events: {
+ },
+
+ initialize: function(opt){
+ this.parent = opt.parent
+ this.$error = this.$(".errrrrrrrrrrrrrrr")
+ },
+
+ show: function(){
+ document.body.className = "cart"
+ app.cart.el.className = "cart_error"
+ app.footer.show("&lt; BACK TO CART")
+ app.footer.hide()
+ },
+
+ show_error: function(msg){
+ this.$error.html(msg)
+ },
+
+ ok: function(){
+ app.router.go("cart/summary")
+ },
+
+}) \ No newline at end of file