From 7aa6781c617b91e3ed28d528428087f11131daac Mon Sep 17 00:00:00 2001 From: PeterTheOne Date: Thu, 28 Jan 2016 18:58:28 +0100 Subject: musicpools: remove old events and debug logs 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 = []; -- cgit v0.10.2