2012-03-23 01:59:58 +00:00
|
|
|
window.RoomsView = Backbone.View.extend({
|
|
|
|
initialize: function() {
|
|
|
|
this.collection.bind('reset', this.render, this);
|
|
|
|
},
|
|
|
|
render: function() {
|
2012-05-10 15:03:33 +00:00
|
|
|
$('#room-tabs').tabs('destroy');
|
2012-03-23 01:59:58 +00:00
|
|
|
this.template = Handlebars.compile($("#room-tabs-template").html());
|
|
|
|
var rooms = {'rooms': this.collection.toJSON()};
|
2012-05-10 15:03:33 +00:00
|
|
|
$('#room-tabs').html(this.template(rooms)).tabs({
|
|
|
|
select: function(event, ui) {
|
|
|
|
//set hashtag?
|
|
|
|
}
|
|
|
|
});
|
|
|
|
events.fire("roomsLoaded");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.LampelView = Backbone.View.extend({
|
|
|
|
initialize: function() {
|
|
|
|
this.collection.bind('reset', this.render, this);
|
|
|
|
},
|
|
|
|
render: function() {
|
|
|
|
events.fire("lampelLoaded");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.BuzzerView = Backbone.View.extend({
|
|
|
|
initialize: function() {
|
|
|
|
this.collection.bind('reset', this.render, this);
|
|
|
|
},
|
|
|
|
render: function() {
|
|
|
|
events.fire("buzzerLoaded");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.Par56View = Backbone.View.extend({
|
|
|
|
initialize: function() {
|
|
|
|
this.collection.bind('reset', this.render, this);
|
|
|
|
},
|
|
|
|
render: function() {
|
|
|
|
events.fire("par56Loaded");
|
|
|
|
|
2012-03-23 01:59:58 +00:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|