diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:00:30 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-02 21:00:30 -0500 |
| commit | 393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 (patch) | |
| tree | 84d2856b9b7c97731970347a9357722f63679b4e /StoneIsland/platforms/ios/www/js/lib/cart/CartError.js | |
| parent | d6910087feae6cd30141a615f2de753c37af14b8 (diff) | |
build..
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/cart/CartError.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/cart/CartError.js | 28 |
1 files changed, 28 insertions, 0 deletions
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 |
