summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/SignupView.js
blob: c6cd29303d85fbdf01a2aba9a8fc3f70a0569be0 (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 SignupView = View.extend({
  
  el: "#signup",
  
  events: {
    "submit form": "submit",
  },
  
  initialize: function(){
    this.$form = this.$("form")
    this.$msg = this.$(".msg")
  },
  
  show: function(){
    this.$form.get(0).reset()
    this.$msg.html("* Your personal and payment information will always remain private")
    document.body.className = "signup"
  },

  submit: function(e){
    e.preventDefault()
  },
  
  success: function(){
    // change login in ui to logout or whatever
  },

})