blob: 473df382046469010a69f5f9e0e39a6a7ab2087e (
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 IndexView = View.extend({
events: {
},
action: "/api/index",
initialize: function(opt){
// opt.parent = parent
this.hootbox = new HootBox ({ parent: this })
this.threadbox = new ThreadBox ({ parent: this })
this.load()
},
load: function(){
$.get(this.action, this.populate.bind(this))
},
populate: function(data){
this.hootbox.load(data.hootbox)
this.threadbox.load(data.threads)
},
success: function(){
window.location.href = "/index"
},
})
|