summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/ShippingView.js
blob: f90898757f240afc67c98d543a4b4825f51c62bd (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
29
30
31
32
33
34
35
36
37
38
39
40
var ShippingView = FormView.extend({
  
  el: "#shipping",

  events: {
  },
  
  test_data: {
    "Name":"name",
    "Surname":"surname",
    "Address":"address",
    "IsDefault":false,
    "IsBillingDefault":false,
    "IsOwner":false,
    "ZipCode":"88040",
    "City":"City",
    "Province":"Province",
    "Phone":"Phone",
    "Mobile":"Mobile",
    "Mail":"Mail",
    "UserId": sdk.auth.user_id,
  },

  initialize: function(){
    this.$form = this.$("form")
    this.$msg = this.$(".msg")
    this.address = new AddressView ({ parent: this })
    this.scroller = new IScroll('#shipping', app.iscroll_options)
  },

  show: function(){
    if (! auth.logged_in()) { return app.router.go("intro") }
    app.footer.show("SAVE", "CANCEL")
    document.body.className = "shipping"
  },
  
  save: function(){
  },

})