summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/LoginView.js
blob: 31137c55d86950338ce04eb23b6b972f71e7b89d (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
var LoginView = View.extend({
  
  el: "#login",
  
  events: {
    "submit form": "submit",
  },
  
  initialize: function(){
    this.$form = this.$("form")
  },
  
  show: function(){
    this.$form.get(0).reset()
    document.body.className = "login"
  },

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

})