summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2016-01-28 17:58:28 (GMT)
committerPeterTheOne <petertheone@gmail.com>2016-01-28 17:58:28 (GMT)
commit7aa6781c617b91e3ed28d528428087f11131daac (patch)
treea855e6d484db332efacecbfdce265ad1080ac999 /www/js
parent2eb10afbc4bcc36f4206c79df8ae6c1bcb841ad3 (diff)
musicpools: remove old events and debug logs
Diffstat (limited to 'www/js')
-rw-r--r--www/js/musicpools.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/www/js/musicpools.js b/www/js/musicpools.js
index 58359ad..ec5f864 100644
--- a/www/js/musicpools.js
+++ b/www/js/musicpools.js
@@ -80,6 +80,7 @@ MusicpoolsView.prototype.updateSelector = function() {
var self = this;
var $musicpoolSelector = $('#musicpool-selector');
+ $musicpoolSelector.off();
$('option', $musicpoolSelector).remove();
$(this.model.groups).each(function(index, musicpool) {
@@ -120,8 +121,6 @@ var Musicpool = function(title, clock, groupName, description, lowcart, highcart
Musicpool.prototype.render = function() {
var self = this;
this.fetchCarts(function() {
- console.log('render!');
-
self.$el = $('#hiddenTemplates .musicpoolTemplate').clone().removeClass('musicpoolTemplate');
$('#app-musicpools .musicpoolContainer').html(self.$el);
@@ -137,7 +136,6 @@ Musicpool.prototype.render = function() {
};
Musicpool.prototype.fetchCarts = function(success) {
- console.log('fetchCarts!');
var self = this;
rivendell.listCarts(this.groupName, 1, function(cartsXml, status, req) {
self.carts = [];