From 13ae4d849ea0b241d06159a721ddedddd5e5cb46 Mon Sep 17 00:00:00 2001 From: balastegui Date: Fri, 13 May 2016 16:17:05 +0200 Subject: [PATCH] update --- telemeta/static/telemeta/js/playlist.js | 20 ++++++++++++++++++++ telemeta/templates/telemeta/lists.html | 17 ++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/telemeta/static/telemeta/js/playlist.js b/telemeta/static/telemeta/js/playlist.js index 9cd2562d..df538e4e 100644 --- a/telemeta/static/telemeta/js/playlist.js +++ b/telemeta/static/telemeta/js/playlist.js @@ -90,6 +90,26 @@ var playlistUtils = { this.id = ""; // init ID }, + loadSong: function(id){ + alert(id); + var player = $('#player').val(); + var sourceOgg = $('#player').val(); + var sourceMp3 = $('#player').val(); + for (var i=0; i TODO: find another way + //player.play(); //start playing + }, + /** * Returns an uniqid by creating the current local time in millisecond + a random number. Used for markers and some json calls * Copied from Timeside.utils.uniqid (Timeside might NOT ALWAYS be loaded, see home.html when user is authenitcated) diff --git a/telemeta/templates/telemeta/lists.html b/telemeta/templates/telemeta/lists.html index 39167a09..a8f7dcfb 100644 --- a/telemeta/templates/telemeta/lists.html +++ b/telemeta/templates/telemeta/lists.html @@ -143,7 +143,10 @@
- +
{{ playlist.playlist.title }} + {{ playlist.playlist.title }} + + {% trans "Edit" %} CSV Collections @@ -204,9 +207,17 @@ {% if resource.element.file or resource.element.has_mediafile %} - + + + +

d

- +
{% endif %}
-- 2.39.5