blob: e99777e96cee5c368179084cc0abdd608c839b68 (
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
41
42
43
44
45
46
47
48
49
50
51
|
var MasterView = View.extend({
el: "body",
events: {
"click [data-role='show-signup-modal']": 'showSignUpModal',
"click [data-role='show-signin-modal']": 'showSignInModal',
"click [data-role='create-project-modal']": 'showCreateProjectModal',
"click [data-role='edit-project-modal']": 'showEditProjectModal',
"click [data-role='edit-profile-modal']": 'showEditProfileModal',
},
initialize: function(){
this.signUpModal = new SignUpModal()
this.signInModal = new SignInModal()
this.createProjectModal = new CreateProjectModal()
this.editProjectModal = new EditProjectModal()
this.editProfileModal = new EditProfileModal()
$("body").removeClass("loading")
// app.launch()
},
showSignUpModal: function(e){
e.preventDefault()
this.signUpModal.load()
},
showSignInModal: function(e){
e.preventDefault()
this.signInModal.load()
},
showCreateProjectModal: function(e){
e.preventDefault()
this.createProjectModal.load()
},
showEditProjectModal: function(e){
e.preventDefault()
this.editProjectModal.load()
},
showEditProfileModal: function(e){
e.preventDefault()
this.editProfileModal.load()
},
})
|