From 34316ee23f6fd1b13b03209ade06027aa6ba2ca2 Mon Sep 17 00:00:00 2001 From: PeterTheOne Date: Thu, 28 Jan 2016 17:08:38 +0100 Subject: musicpools: clone table template diff --git a/www/index.html b/www/index.html index 0bd7725..110849f 100644 --- a/www/index.html +++ b/www/index.html @@ -192,11 +192,8 @@ -
-

Musikpools

-

- coming soon! -

+
+
@@ -307,6 +304,26 @@ +
+
+

+ + + + + + + + + + + + +
Cart #TitelAktionen
+ +
+
+
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); + }); }; -- cgit v0.10.2