summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/LoginView.js
blob: 3b409b3d760cfeec260c2f552a59596151913a50 (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
var LoginView = View.extend({
  
  el: "#login",
  
  events: {
    "submit form": "submit",
  },
  
  initialize: function(){
    this.$form = this.$("form")
  },
  
  show: function(){
    this.$form.reset()
    document.body.classList.add("login")
  },
  
  hide: function(){
    document.body.classList.remove("login")
  },
  
  submit: function(e){
    e.preventDefault()
  },
  
  success: function(){
    // change login in ui to logout or whatever
  },

})