summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartError.js
blob: f9a1963e8325df4048cd9703cdbc9a4984bf3c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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")
  },

})