From 393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 2 Dec 2015 21:00:30 -0500 Subject: build.. --- .../platforms/ios/www/js/lib/cart/CartError.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 StoneIsland/platforms/ios/www/js/lib/cart/CartError.js (limited to 'StoneIsland/platforms/ios/www/js/lib/cart/CartError.js') diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartError.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartError.js new file mode 100644 index 00000000..f9a1963e --- /dev/null +++ b/StoneIsland/platforms/ios/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 = "error" + app.footer.show("< 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 -- cgit v1.2.3-70-g09d2