blob: f2edae3586c05d14a3c7e31edd74d57a37686f58 (
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 = "cart_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")
},
})
|