summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2016-01-28 16:08:38 (GMT)
committerPeterTheOne <petertheone@gmail.com>2016-01-28 16:08:38 (GMT)
commit34316ee23f6fd1b13b03209ade06027aa6ba2ca2 (patch)
tree35541d1ffdc9edfbff79685cd8e2cb7c5dd31d62 /www/js
parent864637d8469ec0b40c41ef80c661e6e923cd0a66 (diff)
musicpools: clone table template
Diffstat (limited to 'www/js')
-rw-r--r--www/js/musicpools.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/musicpools.js b/www/js/musicpools.js
index 30e9d70..93d4824 100644
--- a/www/js/musicpools.js
+++ b/www/js/musicpools.js
@@ -112,11 +112,18 @@ var Musicpool = function(title, clock, groupName, description, lowcart, highcart
this.trimlevel = trimlevel;
this.carts = [];
+
+ this.$el = null;
};
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);
+
});
};