blob: 40cc29baf031ba9a5181ea49e7ba52c2c1fcee5b (
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
|
var LoginView = View.extend({
el: "#login",
events: {
"submit form": "submit",
},
mode: null,
initialize: function(){
this.$form = this.$("form")
},
show: function(){
this.$form.reset()
document.body.classList.add("login")
},
hide: function(){
app.curtain.hide()
document.body.classList.remove("login")
},
submit: function(e){
e.preventDefault()
},
success: function(){
// change login in ui to logout or whatever
},
})
|